Skip to content
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

cmd: Exit with status 0 when -h is used #87

Merged
merged 1 commit into from
Feb 11, 2024
Merged

cmd: Exit with status 0 when -h is used #87

merged 1 commit into from
Feb 11, 2024

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented Feb 11, 2024

This is a pretty standard CLI behavior:
cmd -h should print the help message and exit with status 0.
This is the default behavior in the flag package under ExitOnError mode.
We neglected to replicate that in ContinueOnError mode.

This is a pretty standard CLI behavior:
`cmd -h` should print the help message and exit with status 0.
This is the default behavior in the flag package under ExitOnError mode.
We neglected to replicate that in ContinueOnError mode.
@abhinav abhinav merged commit 57495cc into main Feb 11, 2024
9 checks passed
@abhinav abhinav deleted the exit-h branch February 11, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants