-
Notifications
You must be signed in to change notification settings - Fork 105
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
ARGV is empty inside action block #103
Comments
Hmm, I hadn't considered that anyone would be using ARGV directly; As a stopgap, you could do exit run(ARGV.clone) in your Buy My Book: http://www.awesomecommandlineapps.com On Thu, Aug 16, 2012 at 1:36 PM, Alex Vinnik [email protected]:
|
I have some code that relies on ARGV in order to get the original command line as it passed by shell for spawning parallel processes with it minus some global options. Plus I think people would agree that global ARGV should not change under any circumstances because it effectively changes starting state of the process. exit run(ARGV.clone) # this workaround works just fine Thanks |
Looks like latest gli 2.0.0 regressed by making ARGV empty after command line parsing
Noticed that ARGV is cloned in parse_options but clone is never used after that. I assume args_clone should be used as an input by parsers so ARGV value doesn't change.
The text was updated successfully, but these errors were encountered: