commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "andrew ox." <>
Subject [CLI2][PATCH] patch for CLI-158
Date Wed, 04 Jun 2008 16:00:54 GMT
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.

View raw message