commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CLI-147) Create page explaining which parser to use when
Date Sun, 01 Jun 2008 10:08:45 GMT

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


Mime
View raw message