commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36189] New: - separate definition and values
Date Mon, 15 Aug 2005 05:48:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36189

           Summary: separate definition and values
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: CLI
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ittayd@qlusters.com


right now Option holds both configuration parameters - that say how to parese,
and values - the result of parsing.

this isn't very robust if options are used at places other than main(). for
example, if some server application wants a cli interface (e.g., through a tcp
connection), then the best approach for it would be to have a static variable
with the options configuration and give it to the parser each time. with the
current code, the Options object needs to be recreated every time.

also, iterating over Options.getOptions() is cumbersome because some options may
actually belong to an option group. it would be helpfull if Options.getOption
would return a collection containing Option and OptionGroup, then the user can
iterate over it, and with a simple 'instanceof' know what type it is, and then
handle it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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