Closed atnak closed 5 years ago
This problem is the result of not specifying ParserProperties.optionValueDelimiter
which defaults to a space. It only works with =
when there are not spaces in the value because that behaviour is kept for backwards compatibility.
Anyone not using a space should specify ParserProperties.optionValueDelimiter
to ensure consistent behaviour:
new CmdLineParser(..., ParserProperties.defaults().withOptionValueDelimiter("="))
Closing this issue.
Specifying the options as
--foo=VALUE
throws--foo=... is not a valid option
ifVALUE
contains a space.Code to reproduce