-
Notifications
You must be signed in to change notification settings - Fork 97
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
Carton intercepts --help, --version, and probably others #151
Comments
Use |
That feels like a hack. |
It is a pretty normal and standard behavior for POSIX tools that use getopt |
although |
I just stumbled upon this. The main problem IMHO is that from a user's point of view the behaviour changes depending on the arguments (s)he give to the script: I think there are two reasons these two arguments could just be dropped:
I am not sure what to do with |
Well, for now just use |
Yes, |
When run with carton, my script cannot do anything with the
--help
and--version
command parameters, as carton intercepts them and prints out it's own help and version information.The command I'm using:
carton exec ./my-script.pl --help
Carton should stop processing command line options once it discovers an
exec
, as everything after that point should be passed, unmolested, to the process.The text was updated successfully, but these errors were encountered: