global bool flags does not work #1717
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
My urfave/cli version is
github.com/urfave/cli/v2 v2.25.1
Checklist
The bug
When I set a global bool flag, like the following:
When I run another command, like
plugin info
, it says:Incorrect Usage: flag provided but not defined: -verbose
and at the end of the help text:flag provided but not defined: -verbose
But now, when I mark the flag as required, if I run the same command, the cli says:
Required flag "verbose" not set
lol.The full command is:
go run . plugin info --verbose
.plugin
is a command andinfo
a subcommand that actually performs some action.The text was updated successfully, but these errors were encountered: