Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2
-
None
-
None
-
Java 7
Linux/Windows
Description
If I define the following options:
Option dest = OptionBuilder .withArgName("-d") .withDescription("Destination") .hasArg() .create("-d"); dest.setRequired(true); Option filenames = OptionBuilder .withArgName("-f") .withDescription("Filenames; comma separated") .hasArgs() .withValueSeparator(',') .create("-f");
when I parse the following arguments
-d c:\development\test -f abc.txt -qa hello
rather than getting a ParseException, the code thinks abc.txt, -qa, hello are the values for the -f option.
Attachments
Issue Links
- is blocked by
-
CLI-221 cli's with last option as list type values and have argument are not parsed correctly
- Open