commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Shirley (JIRA)" <j...@apache.org>
Subject [jira] Created: (CLI-119) CommandLine (and WriteableCommandLine) know too much about the subclasses of Option
Date Fri, 23 Jun 2006 15:01:29 GMT
CommandLine (and WriteableCommandLine) know too much about the subclasses of Option
-----------------------------------------------------------------------------------

         Key: CLI-119
         URL: http://issues.apache.org/jira/browse/CLI-119
     Project: Commons CLI
        Type: Improvement

    Reporter: Andrew Shirley


There are certain subclasses of Option which seem to have their own areas of CommandLine and
WriteableCommandLine for no apparant reason, The two obvious ones are Switch and PropertyOption
which have {add, get}Switch and {add,get}Property respectively. I can't see why they couldn't
simply use addValue with a value of Boolean and Property ( a class for holding key-value pairs)
This would allow any subclass of Option to get the same treatment from CommandLine and provide
a cleaner interface between Options and Commandlines

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
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