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

commons-cli chokes on '-' characters #60

Open
dmacvicar opened this issue Nov 3, 2014 · 2 comments
Open

commons-cli chokes on '-' characters #60

dmacvicar opened this issue Nov 3, 2014 · 2 comments

Comments

@dmacvicar
Copy link

java -classpath /usr/share/java/commons-logging.jar:/usr/share/java/commons-cli.jar:/usr/share/java/lesscss-engine.jar:/usr/share/java/rhino.jar com.asual.lesscss.LessEngineCli spacewalk.less

Exception in thread "main" java.lang.IllegalArgumentException: opt contains illegal character value '-'
        at org.apache.commons.cli.OptionValidator.validateOption(OptionValidator.java:73)
        at org.apache.commons.cli.Option.<init>(Option.java:123)
        at org.apache.commons.cli.Options.addOption(Options.java:131)
        at org.apache.commons.cli.Options.addOption(Options.java:114)
        at com.asual.lesscss.LessEngineCli.main(LessEngineCli.java:49)

It works if all options defined in LessOptions.java that contains '-' are camelcased.

@jasonsperske
Copy link

Just ran in to this bug (I'm running 1.5.1 with commons-cli 1.2)

@veve90
Copy link

veve90 commented Nov 19, 2019

Me too...

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