You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Grzegorz Solecki (JIRA)" <ji...@apache.org> on 2009/09/22 20:26:19 UTC
[jira] Created: (CLI-188) Adding the another hyphen code 96.
Adding the another hyphen code 96.
----------------------------------
Key: CLI-188
URL: https://issues.apache.org/jira/browse/CLI-188
Project: Commons CLI
Issue Type: Improvement
Components: Parser
Affects Versions: 1.2, 1.1, 1.0
Reporter: Grzegorz Solecki
Priority: Trivial
Fix For: 1.3
In the class Parser (rev 680644) close to line 190 there is code:
\\
\\
{code:title=Parser.java}
// the value is an option
else if (t.startsWith("-"))
{
{code}
This line recognizes hyphen like -
But sometimes (when someone has to work with MS Word Docs) this hyphen - can be used instead of -.
So I would like to suggest just adding a simple piece of code like:
\\
\\
{code:title=Parser.java}
// the value is an option
else if (t.startsWith("-") || t.startsWith("-"))
{
{code}
or try to throw an exception like "Option expected not " or "unexpected argument".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLI-188) Adding the another hyphen code 96.
Posted by "Grzegorz Solecki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grzegorz Solecki updated CLI-188:
---------------------------------
I see that after commiting an issue the JIRA engine had replaced those two diffrent hyphens so I have attached the file to show them.
> Adding the another hyphen code 96.
> ----------------------------------
>
> Key: CLI-188
> URL: https://issues.apache.org/jira/browse/CLI-188
> Project: Commons CLI
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.0, 1.1, 1.2
> Reporter: Grzegorz Solecki
> Priority: Trivial
> Fix For: 1.3
>
>
> In the class Parser (rev 680644) close to line 190 there is code:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-"))
> {
> {code}
> This line recognizes hyphen like -
> But sometimes (when someone has to work with MS Word Docs) this hyphen - can be used instead of -.
> So I would like to suggest just adding a simple piece of code like:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-") || t.startsWith("-"))
> {
> {code}
> or try to throw an exception like "Option expected not " or "unexpected argument".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CLI-188) Adding the another hyphen code 96.
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed CLI-188.
-----------------------------
Resolution: Won't Fix
Agreed - resolving as wontfix.
> Adding the another hyphen code 96.
> ----------------------------------
>
> Key: CLI-188
> URL: https://issues.apache.org/jira/browse/CLI-188
> Project: Commons CLI
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.0, 1.1, 1.2
> Reporter: Grzegorz Solecki
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: TwoDifferentHyphens.txt
>
>
> In the class Parser (rev 680644) close to line 190 there is code:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-"))
> {
> {code}
> This line recognizes hyphen like -
> But sometimes (when someone has to work with MS Word Docs) this hyphen - can be used instead of -.
> So I would like to suggest just adding a simple piece of code like:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-") || t.startsWith("-"))
> {
> {code}
> or try to throw an exception like "Option expected not " or "unexpected argument".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLI-188) Adding the another hyphen code 96.
Posted by "Grzegorz Solecki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grzegorz Solecki updated CLI-188:
---------------------------------
Attachment: TwoDifferentHyphens.txt
Two different hyphens.
> Adding the another hyphen code 96.
> ----------------------------------
>
> Key: CLI-188
> URL: https://issues.apache.org/jira/browse/CLI-188
> Project: Commons CLI
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.0, 1.1, 1.2
> Reporter: Grzegorz Solecki
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: TwoDifferentHyphens.txt
>
>
> In the class Parser (rev 680644) close to line 190 there is code:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-"))
> {
> {code}
> This line recognizes hyphen like -
> But sometimes (when someone has to work with MS Word Docs) this hyphen - can be used instead of -.
> So I would like to suggest just adding a simple piece of code like:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-") || t.startsWith("-"))
> {
> {code}
> or try to throw an exception like "Option expected not " or "unexpected argument".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLI-188) Adding the another hyphen code 96.
Posted by "Jim Jagielski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758350#action_12758350 ]
Jim Jagielski commented on CLI-188:
-----------------------------------
There is a difference between CLI options hyphen and the MS Word 'em-dash', same as there are between "regular" ASCII quotes and the "curly quotes".
I don't think that CLI should honor or accept either of those alternatives...
> Adding the another hyphen code 96.
> ----------------------------------
>
> Key: CLI-188
> URL: https://issues.apache.org/jira/browse/CLI-188
> Project: Commons CLI
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.0, 1.1, 1.2
> Reporter: Grzegorz Solecki
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: TwoDifferentHyphens.txt
>
>
> In the class Parser (rev 680644) close to line 190 there is code:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-"))
> {
> {code}
> This line recognizes hyphen like -
> But sometimes (when someone has to work with MS Word Docs) this hyphen - can be used instead of -.
> So I would like to suggest just adding a simple piece of code like:
> \\
> \\
> {code:title=Parser.java}
> // the value is an option
> else if (t.startsWith("-") || t.startsWith("-"))
> {
> {code}
> or try to throw an exception like "Option expected not " or "unexpected argument".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.