If the CLI shows help because of a malformed command, but --help
was not passed, return nonzero
#3466
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Thanks for your work on kind, it's very helpful.
I mistyped a command:
kind clusters get
. That's not how the CLI works. It should have beenkind get clusters
.Helpfully, kind showed me the help. Unhelpfully, kind returned 0, as if everything had gone according to plan. Later, I tried to recall this command via fzf, expecting to chose from a list of past successes.
Instead I was shown both failures and successes:
kind get clusters
kind clusters get
This happened because kind returned 0 for both, so my history search couldn't tell the successes from the failures.
Git behaves appropriately:
Kind does not:
Environment:
kind version
):The text was updated successfully, but these errors were encountered: