Janus Troelsen created CLI-259:
----------------------------------
Summary: Options silently truncated and misinterpreted
Key: CLI-259
URL: https://issues.apache.org/jira/browse/CLI-259
Project: Commons CLI
Issue Type: Bug
Affects Versions: 1.3.1
Reporter: Janus Troelsen
It seems that Commons CLI will silently remove numbers from long
options like "--channel2" so that it becomes "--channel". But it still
allows defining options like "channel2" without exceptions. This is
unintuitive behaviour, as an argument meant for "channel2" will be
received for "channel". If I supply arguments for both "channel" and
"channel2", the one for "channel2" is simply silently ignored.
Here is a demonstration of the bug: https://github.com/ysangkok/cli-problem
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)