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 Shirley (JIRA)" <ji...@apache.org> on 2006/06/23 17:01:29 UTC
[jira] Created: (CLI-119) CommandLine (and WriteableCommandLine)
know too much about the subclasses of Option
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
[jira] Updated: (CLI-119) CommandLine (and WriteableCommandLine)
know too much about the subclasses of Option
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/CLI-119?page=all ]
Henri Yandell updated CLI-119:
------------------------------
Fix Version: 2.0
> 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
> Fix For: 2.0
>
> 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