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

Don't show help when calling --version #249

Merged
merged 1 commit into from
Apr 16, 2016
Merged

Conversation

KyleAMathews
Copy link
Contributor

Our little helper to show help when someone put in an unknown command wasn't accounting for the built-in command from commander --version and -V.

@benstepp
Copy link
Contributor

Don't show help when calling --version

Sounds like the perfect description for a test case

@KyleAMathews
Copy link
Contributor Author

@benstepp I tried adding a test for this but when I called gatsby with --version, babel-node captured that and returned its version. I couldn't find a way around this. If you can think of an easy work-around for this, great, otherwise I guess it'll have to go untested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants