[
https://issues.apache.org/jira/browse/CLI-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601176#action_12601176
]
Emmanuel Bourg edited comment on CLI-147 at 5/26/09 6:15 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|
||Partial matching\\(--ver instead of --version)|(x)|(/)\\Since 1.3|(x)|
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|
||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|
||Partial matching\\(--he instead of --help)|(x)|(x)|(x)|
> 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
> Fix For: 1.3
>
>
> 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.