We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SortFlags
The SortFlags option mentioned in the README is not actually exported.
pflag/README.md
Line 257 in d5e0c06
CommandLine.SortFlags
# README.md flags.BoolP("verbose", "v", false, "verbose output") flags.String("coolflag", "yeaah", "it's really cool flag") flags.Int("usefulflag", 777, "sometimes it's very useful") -flags.SortFlags = false +flags.CommandLine.SortFlags = false flags.PrintDefaults()
The text was updated successfully, but these errors were encountered:
The example code should be completed regarding how the "flags" variable is created.
The FlagSet.SortFlags field is indeed exported. CommandLine is a convenient FlagSet exposed by the package.
FlagSet.SortFlags
CommandLine
FlagSet
Documentation bug, I'd say.
Sorry, something went wrong.
No branches or pull requests
The
SortFlags
option mentioned in the README is not actually exported.pflag/README.md
Line 257 in d5e0c06
Instead
CommandLine.SortFlags
is available.The text was updated successfully, but these errors were encountered: