Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.2
    • Component/s: CLI-1.x
    • Labels:
      None
    • Bugzilla Id:
      36190

      Description

      Currently exceptions are not structured. When one is thrown, from parsing, only
      the message can be used, which means that if i want to print an error to the
      user i must use the message as is, which sometimes doesn't fit.

      The offending Option/OptionGroup should be in some exceptions.

        Activity

        Hide
        bayard Henri Yandell added a comment -

        Seems like a very good feature - worth being in 2.0 I think. Thoughts?

        Show
        bayard Henri Yandell added a comment - Seems like a very good feature - worth being in 2.0 I think. Thoughts?
        Hide
        bayard Henri Yandell added a comment -

        If you look at:

        http://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/OptionException.java

        You'll see that the exception in CLI 2 appears to have what you want. If not, please feel free to re-open the issue.

        Show
        bayard Henri Yandell added a comment - If you look at: http://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/OptionException.java You'll see that the exception in CLI 2 appears to have what you want. If not, please feel free to re-open the issue.
        Hide
        ebourg Emmanuel Bourg added a comment -

        Moving to CLI 1.x since it has been implemented there.

        Show
        ebourg Emmanuel Bourg added a comment - Moving to CLI 1.x since it has been implemented there.

          People

          • Assignee:
            Unassigned
            Reporter:
            ittayd@qlusters.com Ittay Dror
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development