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

PosixParser keeps processing tokens after a non unrecognized long option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • Parser
    • None

    Description

      PosixParser keeps processing tokens after a non unrecognized long option when stopAtNonOption is enabled. The tokens after the unrecognized long option are burst, split around '=', etc.. instead of being kept as is.

      For example, with the options 'a' and 'b' defined, 'b' having an argument, the following command line:

      --zop -abfoo

      is interpreted as:

      --zop -a -b foo

      but the last token should remain unchanged.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: