You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "andrew ox." <an...@gmail.com> on 2008/06/04 18:00:54 UTC

[CLI2][PATCH] patch for CLI-158

It is possible for a user to specify that an option would have a
maximum and a minimum number of arguments. If a a client then entered
a number of arguments mor than 0, but less than the number of defaults
specified, it would only pick the values from the command line.

eg. Suppose programmer specifies 0 to 3 arguments and specifies tose
default args to be 10, 20 and 30. Suppose further a user enters on the
command line arguments of values 1 and 2. It would seem reasonable
that the values picked up would be 1, 2 and 30. However it previously
only picked the defaults if no arguments at all were submitted.