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

boolean option in documentation is woorking oposite way documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • Documentation
    • 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

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