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

Change exit code for p2p -h #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

beenje
Copy link

@beenje beenje commented Apr 12, 2019

Running "p2p -h" should exit with code 0, not 1.
It's a valid flag.

@mdavidsaver
Copy link
Member

Sorry, I missed this PR somehow.

I don't disagree wrt. '-h'. Note though that this exit(1) is also used for the "Unknown argument" case. I admit that this was a shortcut on my part. I didn't think anyone would notice ;)

Benjamin Bertrand added 2 commits September 9, 2019 13:10
Running "p2p -h" should exit with code 0, not 1.
It's a valid flag.
@beenje
Copy link
Author

beenje commented Sep 9, 2019

You comment got a bit lost during my vacation.

You never know what people are gonna do with your code ;-)
I didn't pay attention that there was no break before "-h". I separated it now.

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