DisableFlagParsing should disable creation of the help flag? #1328
Labels
area/flags-args
Changes to functionality around command line flags and args
lifecycle/needs-pr
Ready for a PR from the community
I expected this to be the default behaviour but maybe there's a good argument for how it is today.
If you add a command with DisableFlagParsing, then
help cmd
will list-h
as a flag, but runningcmd -h
will not print the help, it'll invoke Run() with ['-h']. If it's the command's responsibility to parse all of the flags, I think it makes sense to not add flags automatically.Here is a simplified example:
The output is:
Is there any better way to disable this help flag than this?
The text was updated successfully, but these errors were encountered: