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

Fix --help and -? options #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix --help and -? options #54

wants to merge 1 commit into from

Conversation

lclc
Copy link
Contributor

@lclc lclc commented Dec 31, 2017

Stop on invalid options
Fixes #52 and #53

"h" was already used for "host", so -? (as defined in the help output) makes sense.

Happy New Year :)

@jonasschnelli
Copy link
Contributor

utACK e1d42f9

@Sjors
Copy link
Contributor

Sjors commented Aug 19, 2019

Concept ACK

@sipa
Copy link
Owner

sipa commented Dec 17, 2020

Needs rebase.

Stop on invalid options
Fixes 52 and 53
@lclc
Copy link
Contributor Author

lclc commented Mar 29, 2021

Rebased

if (showHelp) fprintf(stderr, help, argv[0]);
if (showHelp) {
fprintf(stderr, help, argv[0]);
exit(0);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is incorrect when the help message is triggered due to host == NULL or ns == NULL.

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.

--help doesn't work
4 participants