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

UnrecognizedOptionException when providing "Java Property Option" via property files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3, 1.3.1, 1.4
    • None
    • CLI-1.x
    • None

    Description

      If you specify a "Java Property Option" as described here https://commons.apache.org/proper/commons-cli/usage.html it only works when provided via command-line arguments and not via the optional properties file.
      This seems to happen because the properties only allow "perfect match" while the commandline argument do some kind of prefix matching.

      See https://github.com/laeubi/commons-cli/blob/63e91f3414f6abef193f81d963ceccae768cc2e8/src/test/java/org/apache/commons/cli/bug/BugCLI270Test.java for a test-case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: