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

exit codes for --version and --help #29

Closed
balupton opened this issue Apr 15, 2022 · 2 comments
Closed

exit codes for --version and --help #29

balupton opened this issue Apr 15, 2022 · 2 comments
Assignees

Comments

@balupton
Copy link

--version should return a 0 exit code, currently it returns 1

--help should return a 0 exit code or 22 which is EINVAL 22 Invalid argument

this allows commands that check to see if the command is actually working to do so:

https://github.com/bevry/dorothy/blob/master/commands/command-working

@greymd greymd self-assigned this Apr 19, 2022
@greymd
Copy link
Owner

greymd commented Apr 19, 2022

Thank you.
I will work on it for next version.

@greymd
Copy link
Owner

greymd commented Apr 20, 2022

@balupton Hi,
This behavior has been fixed at v1.2.2.

$ teip --version
teip 1.2.2
$ echo $?
0
$ teip --help &> /dev/null
$ echo $?
0

If you have any other issues, please let me know.

@greymd greymd closed this as completed Apr 20, 2022
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

No branches or pull requests

2 participants