-
Notifications
You must be signed in to change notification settings - Fork 27
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 support for -h arg #128
Conversation
Thanks @gerdreiss ! The code seems to work fine but the tests are failing. I had a quick look but couldn't figure out what's going on. |
One thing to note, specifying the So the only question is why the test is failing. |
Hi @hrj, in my understanding Scallop is adding "--help", not "-h". When -h is given as a program argument to CLIApp without having my change in place, following text is printed to the console: -c, --config With my change you see: -c, --config I'll check the tests... |
@gerdreiss Ah yes, you are right about About the test failure, FYI, I reported it upstream: scallop/scallop#129 |
@gerdreiss Rogach replied on the scallop issue, with multiple ideas. I like the idea of fixing the onError() function so that it handles the Do you want to take a stab at it? |
@hrj Sounds good, I'll give it a try |
Offering -h option by adding an option with name "help" and short name "h" and letting Scallop handle the printing of the help text