-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Bug] --version and --help are exiting with failure code #495
Comments
Would also be nice if it didn't print |
I spent some time looking into this, and I don't think it's easily fixable unless the following two Cobra issues are fixed:
I there's a hack we can put in to detect if help text is being displayed, and use that to tl;dr Still looking... |
We want a non-zero exit when the user invokes `temporal` with an unknown command/subcommand, or when invoked with no arguments. But if the user explicitly asks for help, we should print it and return success. Closes #495.
We want a non-zero exit when the user invokes `temporal` with an unknown command/subcommand, or when invoked with no arguments. But if the user explicitly asks for help or version information, we should print it and return success. Closes #495.
The text was updated successfully, but these errors were encountered: