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

arguments are interpreted as options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1
    • 1.2
    • CLI-1.x
    • None
    • Debian stable x86 with Sun JDK 1.6.0_02

    Description

      The command-line parser interprets arguments to options as options if they match existing options. Example:

      Assume
      -a arg
      -b arg

      -a b -b a was fixed in CLI-71, but

      -a "-b" returns
      Unable to parse command line: no argument for:a

      -a "-c" is OK if "-c" is not defined as an option.

      The option in my case was "-password" and their password happened to match one of the options.

      Attachments

        1. BugCLI138Test.java
          1 kB
          Brian Egge

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mray Matt Ray
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: