Misleading shorthand flag panic message #1987
Labels
area/flags-args
Changes to functionality around command line flags and args
good-first-issue
Issues that a new contributor could make a PR for
lifecycle/needs-pr
Ready for a PR from the community
Adding a BoolVarP with shorthand code of "h" to any flagset generates a misleading panic message:
The error makes it seem like the issue is with the "mapgen" flagset (in this example) when it's actually from the default help flagset.
To recreate, add a BoolVarP to the root command and then run the command with no arguments.
This is with v1.0.5.
The text was updated successfully, but these errors were encountered: