commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Keyes <j...@mac.com>
Subject [CLI] default values
Date Sun, 15 Feb 2004 23:30:03 GMT
One of the failing unit tests on the ROXSPRING branch was the
testWithOption method on CommandLineDefaultsTests.  The reason
it failed was the default value set during Option construction
was not accessible to CommandLine.getValue.  So to make this
information accessible I propose we add a getArgument method to
Parent and getDefaults to Argument.  To see if any default
during construction we simply do:

   if (option instanceof Parent) {
     Argument arg = ((Parent) option).getArgument();
     List defaults = arg.getDefaults();
   }

Did you have a different idea about how to resolve this Rob?

-John K


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


Mime
View raw message