You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
$ go run .helpError: required flag(s) "required" not setUsage: mycmd help [command] [flags]Flags: -h, --help help for helpGlobal Flags: --required required (default true)
The text was updated successfully, but these errors were encountered:
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: