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 nonzero on unknown command. Resolves #276. #396

Closed
wants to merge 1 commit into from

Conversation

danslimmon
Copy link

When an unknown command is given (iff the app has custom commands at
all!) the usage message is printed and we exit with status 3.

When an unknown command is given (iff the app has custom commands at
all!) the usage message is printed and we exit with status 3.
@jszwedko jszwedko self-assigned this May 8, 2016
@jszwedko
Copy link
Contributor

jszwedko commented May 8, 2016

Hi @danslimmon, thanks for getting the ball rolling on this!

This may not cover all of the cases where that help message is printed (specifically for subcommands), but I have an idea for something that might be more generic. I'll follow up with another PR to get your feedback.

@jszwedko
Copy link
Contributor

jszwedko commented May 8, 2016

Proposed alternate approach in #399 which handles the unknown command under a subcommand case, let me know what you think!

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