Possible bug?

26 views
Skip to first unread message

Pavel Tavoda

unread,
Jul 4, 2017, 6:02:21 PM7/4/17
to jcommander
When I define parameter like:
@Parameter(names = {"-o", "--outputFile", "--output-file"}, description = "Output file, if not specified calculated automatically")
String outputFile;


And in builder I allow abbreviations (allowAbbreviatedOptions(true)) and using on command line parameters like:
--OUt output.file

I have got following error:
Error parsing arguments: Ambiguous option: --OUt matches [--outputFile, --output-file]


I understand what does it mean, however I think when it's used on same parameter it's clear which parameter I would like to set (is not ambiguous).

/Pavel
Reply all
Reply to author
Forward
0 new messages