Skip to content

Fix --help and -? options#54

Open
lclc wants to merge 1 commit intosipa:masterfrom
lclc:helpfix
Open

Fix --help and -? options#54
lclc wants to merge 1 commit intosipa:masterfrom
lclc:helpfix

Conversation

@lclc
Copy link

@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
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