-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 throw on positional errors if --help was passed #6
Comments
I think that I don't understand the entire issue, so please be patient with me :-)
|
This is supposed to come with |
👍 but the main point of this issue is unrelated to customization:
If the script |
This is a matter of taste. I want to avoid a special case that would depend on argument name. My goal include making your setup possible without having to pass the argbash-generated output to additional scripts, but using other means than handling the |
Fair points, I think this can be closed then unless you want to keep it open for reference. |
This will be closed only when the issue is solved ;-) One bugfix release is to be expected before this is addressed. |
Check out the DIY mode, it gives you what you need. |
When a script has required positionals it should not throw an error if the user also passed
--help
. The help is displayed but it prevents using a custom help function viaARG_OPTIONAL_ACTION([help]..)
, asdie()
always calls the defaultprint_help
. A user has to call./foo.sh asd --help
to see the custom help function.Also
./foo.sh --help
ending withFATAL ERROR: ....
is probably not the best user experience.The text was updated successfully, but these errors were encountered: