Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-132

MissingOptionException should contain a useful error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0, 1.1
    • 1.1
    • CLI-1.x
    • None

    Description

      Most exception message contain a useful message string like "Missing argument for option:". The MissingOptionException contains only the missing options. Adding a message to the exception would make it easier to catch a ParseException and display the getMessage() string.

      Attachments

        1. bug132.patch
          2 kB
          Brian Egge

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brianegge Brian Egge
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: