[ 
https://issues.apache.org/jira/browse/CLI-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515524
 ] 

Brian Egge commented on CLI-138:
--------------------------------

Many Unix programs have the -- option, such as Ruby & Perl.  I think it's a 
good to have, but I have to disagree that's it's a bug.

You could 'preprocess' the args and use CLI 1.1, or you could look at using the 
2.0 branch.  It would be good to get some development on the 2.0 branch.  There 
are a number of things the 1.x branch doesn't do, but would be really useful to 
have.

For example, I usually have a help & version option.  If either of these 
options are present, then nothing else should be, and 'required' arguments 
become 'not required'.  2.0 has build in handling for this situation.  What I 
do now though, is process the arguments twice.  Once for help/version, and if 
neither are present, then I do the regular parse.

> No '--' option for terminating options processing
> -------------------------------------------------
>
>                 Key: CLI-138
>                 URL: https://issues.apache.org/jira/browse/CLI-138
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.1
>         Environment: Ubuntu 7.04 Feisty Fawn
>            Reporter: Russel Winder
>
> It appears that neither 1.0 not 1.1 have a '--' option as the 'end processing 
> options' option.  This is immensely useful to allow parameter that are not 
> options that start with a hyphen.  grep for example does this.  I think it is 
> a bug rather than an enhancement request, I think Commons CLI should support 
> '--' option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to