You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/07/12 07:53:31 UTC

[jira] Updated: (CLI-99) [cli] separate definition and values

     [ http://issues.apache.org/jira/browse/CLI-99?page=all ]

Henri Yandell updated CLI-99:
-----------------------------

    Bugzilla Id:   (was: 36189)
    Fix Version: 2.0
        Version: 1.0

> [cli] separate definition and values
> ------------------------------------
>
>          Key: CLI-99
>          URL: http://issues.apache.org/jira/browse/CLI-99
>      Project: Commons CLI
>         Type: Improvement

>     Versions: 1.0
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Ittay Dror
>     Priority: Minor
>      Fix For: 2.0

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

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