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

Default options are not taken into account for the required options

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.3
    • Component/s: Parser
    • Labels:
      None

      Description

      The default options passed as a Properties instance to the parse method are not taken into account when the required options are checked at the end of the parsing. If a required option wasn't present among the arguments of the command line and is picked from the default options, a ParseException is thrown.

        Activity

        Hide
        ebourg Emmanuel Bourg added a comment -

        Fixed for all parsers

        Show
        ebourg Emmanuel Bourg added a comment - Fixed for all parsers

          People

          • Assignee:
            Unassigned
            Reporter:
            ebourg Emmanuel Bourg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development