Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.0, 1.1, 1.2
    • Fix Version/s: 1.3
    • Component/s: Parser
    • Labels:
      None

      Description

      In the class Parser (rev 680644) close to line 190 there is code:

      Parser.java
      // the value is an option
      else if (t.startsWith("-"))
      {
      

      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:

      Parser.java
      // the value is an option
      else if (t.startsWith("-") || t.startsWith("-"))
      {
      

      or try to throw an exception like "Option expected not " or "unexpected argument".

      1. TwoDifferentHyphens.txt
        0.0 kB
        Grzegorz Solecki

        Activity

        Hide
        Henri Yandell added a comment -

        Agreed - resolving as wontfix.

        Show
        Henri Yandell added a comment - Agreed - resolving as wontfix.
        Hide
        Jim Jagielski added a comment -

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

        Show
        Jim Jagielski added a comment - 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...
        Hide
        Grzegorz Solecki added a comment -

        Two different hyphens.

        Show
        Grzegorz Solecki added a comment - Two different hyphens.
        Hide
        Grzegorz Solecki added a comment -

        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.

        Show
        Grzegorz Solecki added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Grzegorz Solecki
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development