-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Add autoVersion
and autoHelp
options
#68
Conversation
You can already do this with the |
By setting the values to false? I would still like meow to handle help and version messages, but not in every case. Sorry, maybe I'm missing something? Here's my use case:
I would like this to print the help message defined for
This PR would allow me to disable help and version handling in meow, but still use the Another option is to alias the help and version flags in |
@sindresorhus any thoughts on this? I'll close it out if you feel it's unnecessary. 🙂 |
Sorry for the late response. Yes, this makes sense. Can you remove the |
autoVersion
and autoHelp
options
Sorry, I'm way late on revisiting this. Just pushed some commits to the PR.
|
Thanks :) |
* this has had no effect since sindresorhus#68
* this has had no effect since sindresorhus#68
Fixes #62
Adds
autoVersion
andautoHelp
options. If either is set to false, meow won't handle printing on--version
and--help
. This would allow for explicit handling of showing either, possibly in a subcommand context.Note: I had to add an extra
\n
to thespawn cli and show help screen
test to pass. Not sure if this due to my shell?