cbeust/jcommander — pull request #124 by clause (2012-07-03 14:31:50+00:00)
Title: Support for whitespace between arguments on the same line in @ argument files

This change allows spaces between arguments on the same line in @ argument files. Consider the content of the args file

args:
-arg build

Without the change, this results in an unknown argument exception.
java -Djcommander.debug -cp build/:../jcommander/build Main @args
[JCommander] Adding description for -arg
[JCommander] Parsing "@args"
with:Options@27d9e895
[JCommander] Parsing arg: -arg build
Error: Unknown option: -arg build

With the change, it works as expected.
java -Djcommander.debug -cp build/:../jcommander/build Main @args
[JCommander] Adding description for -arg
[JCommander] Parsing "@args"
with:Options@24a1a602
[JCommander] Parsing arg: -arg
[ParameterDescription] Adding value:build to parameter:arg