-
Notifications
You must be signed in to change notification settings - Fork 36
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 code from educate #57
Comments
At first I totally agreed, now I'm mixed on this one. If you specify In your example, is help coming from a misuse, or an error? |
Good point. If I'm requesting
Misuse, i.e. any time the usage is printed except for when |
@jaredbeck do you have a test case (not formally) 4 liner parse and opt blurb with a description of what you pass in on the command line and when you expect to get errors? I can convert into an official test, just want to make sure I am coding up your case. --Keenan |
Sure, let me see what I can come up with. What if we consider It's my understanding that trollop is responsible only for options. After parsing options, only the arguments are left in Is that a good example? Do you want me to take the next step and write an opt blurb for it? |
@jaredbeck No code needed. I had misunderstood you. pr 58 helped a lot. If I don't merge in a fix for your issue by next friday, please ping me to keep me honest. |
After I get #61 in, I'll tack this on |
Trollop.educate
exits with code0
. I would like to use Trollop in an existing script, but usage errors must exit with a code N !=0
. As a workaround, I can reopen Trollop:Is there a better way for me to exit with a code N of my choosing?
PS: I'm using Trollop for the first time and I really like it so far. Thanks for the lib!
The text was updated successfully, but these errors were encountered: