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
We should document that a flag.Usage implementation is allowed to call os.Exit. See #21540 for related discussion.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/59792 mentions this issue: flag: document that custom usage functions are free to call os.Exit
flag: document that custom usage functions are free to call os.Exit
Sorry, something went wrong.
305fd91
staticcheck: remove CheckFlagUsage (SA1022)
d3d0ff0
The Go team clarified that calling os.Exit in usage functions is perfectly fine. See the following links for further information: - rsc/getopt@9e2cef2#commitcomment-23601620 - golang/go#21540 (comment) - golang/go#21671 Closes gh-159
No branches or pull requests
We should document that a flag.Usage implementation is allowed to call os.Exit. See #21540 for related discussion.
The text was updated successfully, but these errors were encountered: