[ 
https://issues.apache.org/jira/browse/CLI-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601176#action_12601176
 ] 

ebourg edited comment on CLI-147 at 6/1/08 3:08 AM:
------------------------------------------------------------

I did a comparison of the 3 parsers with the various option formats I had in 
mind. Here are the results :

|| ||GNU||Posix||Basic||
||Flags\\(tar -xvf foo.tar)|(x)\\x is recognized|(/)|(x)\\ParseException|
||Long name with hyphens + space\\(--user ebourg)|(/)|(/)|(/)|
||Long name with hyphens + equal\\(--user=ebourg)|(/)|(/)|(x)\\ParseException|
||Short name with hyphen + space\\(-u ebourg)|(/)|(/)|(/)|
||Short name with hyphen + equal\\(-u=ebourg)|(/)|(x)\\value is 
'=ebourg'|(x)\\ParseException|
||1 digit short name + value\\(-O1, -V3)|(/)|(/)|(x)\\ParseException|
||2+ digits short name + 
value\\(-Xmx512M)|(x)\\ParseException|(x)\\ParseException|(x)\\ParseException|
||Short name only\\(-v, -version)|(/)|(/)|(/)|
||Long name only\\(--help)|(/)|(/)|(/)|
||Property\\(-Dprop=value)|(/)\\2 values: prop, value|(/)\\2 values: prop, 
value|(x)\\ParseException|

      was (Author: ebourg):
    I did a comparison of the 3 parsers with the various option formats I had 
in mind. Here are the results :

|| ||GNU||Posix||Basic||
||Flags\\(tar -xvf foo.tar)|(x)\\x is recognized|(/)|(x)\\ParseException|
||Long name with hyphens + space\\(--user ebourg)|(/)|(/)|(/)|
||Long name with hyphens + 
equal\\(--user=ebourg)|(x)\\ParseException|(/)|(x)\\ParseException|
||Short name with hyphen + space\\(-u ebourg)|(/)|(/)|(/)|
||Short name with hyphen + equal\\(-u=ebourg)|(x)\\value is 
'=ebourg'|(x)\\value is '=ebourg'|(x)\\ParseException|
||1 digit short name + value\\(-O1, -V3)|(/)|(/)|(x)\\ParseException|
||2+ digits short name + 
value\\(-Xmx512M)|(x)\\ParseException|(x)\\ParseException|(x)\\ParseException|
||Short name only\\(-v, -version)|(/)|(/)|(/)|
||Long name only\\(--help)|(/)|(/)|(/)|
||Property\\(-Dprop=value)|(/)\\2 values: prop, value|(/)\\2 values: prop, 
value|(x)\\ParseException|
  
> Create page explaining which parser to use when
> -----------------------------------------------
>
>                 Key: CLI-147
>                 URL: https://issues.apache.org/jira/browse/CLI-147
>             Project: Commons CLI
>          Issue Type: Task
>          Components: Documentation
>    Affects Versions: 1.1
>            Reporter: Henri Yandell
>            Assignee: Henri Yandell
>             Fix For: 1.2
>
>
> Basically a short summary of what each parser does.
> Also put each relevant bit in the javadoc.

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

Reply via email to