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

boolean option in documentation is woorking oposite way documented

    Details

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

      Description

      In documentation it says as follows:

      CommandLine parse(Options options,
      String[] arguments,
      boolean stopAtNonOption)
      throws ParseException

      stopAtNonOption - specifies whether to continue parsing the arguments if a non option is encountered.

      The parser stops an throws Exception if "stopAtNonOption" is set to false (when I guess it should be other way round), if I set boolean "true", the parser ignores unknown arguments and continues without throwing Exception.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              anla2973 Anders Larsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified