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

PosixParser ignores unrecognized tokens starting with '-'

    XMLWordPrintableJSON

Details

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

    Description

      PosixParser doesn't handle properly unrecognized tokens starting with '-' when stopAtNonOption is enabled, the token is simply ignored.

      For example, if the option 'a' is defined, the following command line:

      -z -a foo

      is interpreted as:

      -a foo

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: