[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]