Skip to content
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

livescript eats all argv flags #610

Closed
appedemic opened this issue Nov 13, 2014 · 4 comments
Closed

livescript eats all argv flags #610

appedemic opened this issue Nov 13, 2014 · 4 comments

Comments

@appedemic
Copy link
Contributor

Similar to #569 the livescript binary eats all flags in 1.3.1:

[~]$ mytool run --debug
results in:

Invalid option '--debug' - perhaps you meant '--help'?

and
[~]$ mytool run --help

prints the help for lsc.

@gkz
Copy link
Owner

gkz commented Nov 13, 2014

Yes, you must use -- and then any arguments that could be mistakenly used by lsc.

Eg. lsc file.ls -- --my-flags-here

This is because the option library allows positional args anywhere. Should I put an option in the library to specify that positional args will be at the end?

@clkao
Copy link
Contributor

clkao commented Jan 25, 2015

This seems breaking backward compatibility pretty badly. There should either be a deprecation cycle (and notes in changelog) or restoring the old behaviour.

@gkz
Copy link
Owner

gkz commented Jan 26, 2015

I agree, I will add an option in the optionator library and fix the behaviour in the next version

zbryikt added a commit to zbryikt/ptt-crawler that referenced this issue Feb 3, 2015
@gkz
Copy link
Owner

gkz commented Mar 5, 2015

The functionality has been added to optionator, and the fix will be in the next version of LS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants