"help" subcommand does not work when MarkPersistentRequiredFlag is used. #1918
Labels
area/cobra-command
Core `cobra.Command` implementations
kind/bug
A bug in cobra; unintended behavior
This issue seems to be similar to #1093.
The auto-implemented subcommands (help and completion) don't work when
MarkPersistentRequiredFlag()
called on root command.Of course it works if the required flag is specified.
IMHO, these auto-implemented subcommands should be able to work without flags defined by user.
Additionaly, these subcommends should not ignore auto-implement flags like
-h, --help
(this differs from #1093).The text was updated successfully, but these errors were encountered: