forked from ogier/pflag
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
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
Ignore ErrHelp with Parse when ExitOnError #306
Comments
@xjasonlyu There is a PR for this somewhere, but this repo is completely neglected. This has been fixed on my fork, which has instructions for how to get working with cobra. |
@cornfeedhobo Thanks.👍 |
3 tasks
@xjasonlyu please reopen this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when we use
-h
or--help
flag to print help message, it would add additionalpflag: help requested
to the end of message; or when some other errors occurred, it would print the error message twice (front and end).It was caused by those codes,
pflag/flag.go
Lines 1144 to 1150 in 2e9d26c
And in go's official
flag
package, it would explicitly ignore theErrHelp
error.I don't know if this was some kind of bug, but a little fixes might be better.🤗
The text was updated successfully, but these errors were encountered: