cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Unknown flags are parsed before unknown commands

Open Airblader opened this issue 2 years ago • 0 comments

If your CLI supports cli foo --bar and you type cli fooo --bar, you get an error that the flag is unknown. In reality, the command is unknown, so the error message is somewhat confusing for a user, especially since this also prevents the usual command suggestions from being printed (if, e.g., you type cli fooo instead).

Airblader avatar Sep 07 '22 15:09 Airblader