Closed ianlewis closed 10 months ago
@ianlewis This is expected behaviour. if someone wants help on a subcmd they can do
$ mycmd --help subcmd
to get the help for subcmd. The workaround for you would be to set a custom App.CommandNotFound func and call ShowSubcommandHelp in that func
When running a command like
mycmd --help foo
this should trigger help to be printed and ignore other command line arguments but in this casecli
will treatfoo
as an argument to--help
and try to print help for thefoo
command. This results in an error message like