commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janus Troelsen <ysang...@gmail.com>
Subject [cli] Commons CLI silently removes numbers from arguments
Date Thu, 15 Oct 2015 19:41:03 GMT
Hi,

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 project to test:

https://github.com/ysangkok/cli-problem

Regards,
Janus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message