Skip to content

Change exit code for p2p -h#28

Open
beenje wants to merge 2 commits into
epics-base:masterfrom
beenje:p2p_exit_code
Open

Change exit code for p2p -h#28
beenje wants to merge 2 commits into
epics-base:masterfrom
beenje:p2p_exit_code

Conversation

@beenje
Copy link
Copy Markdown

@beenje beenje commented Apr 12, 2019

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

@mdavidsaver
Copy link
Copy Markdown
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 ;)

@ralphlange ralphlange force-pushed the master branch 2 times, most recently from 219df27 to 3e59a4b Compare September 6, 2019 13:42
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
Copy Markdown
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