pholser/jopt-simple — Issue #11: Using spaces in option's argument
Author: jchampem
Created: 2012-02-03 10:16:00+00:00
State: open

Hello,

First I am not sure it's a bug or a feature request...

I am using this kind of option specification :
```parser.accepts("comment").withRequiredArg().ofType(String.class);```
and I need the argument to have whitespaces in it. For exemples, these command lines options :
```-comment foo bar
-comment "foo bar"
-comment 'foo bar'
-comment="foo bar"
-comment='foo bar'```
In all those cases,
```(String) opt.valueOf("comment")```
returns only "foo".

or, is there a solution I did not see in documentation ?