You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2007/10/27 20:37:50 UTC

[jira] Commented: (CLI-148) arguments are interpreted as options

    [ https://issues.apache.org/jira/browse/CLI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538241 ] 

Henri Yandell commented on CLI-148:
-----------------------------------

I've added the workaround source to the test package. 

r589175 | bayard | 2007-10-27 11:36:12 -0700 (Sat, 27 Oct 2007) | 1 line
Changed paths:
   M /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI148Test.java

Fixing the source to reference the correct reference number, ie) CLI-138
------------------------------------------------------------------------
r589174 | bayard | 2007-10-27 11:35:46 -0700 (Sat, 27 Oct 2007) | 1 line
Changed paths:
   D /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI138Test.java
   A /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI148Test.java (from /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI138Test.java:589173)

Renaming to correct issue number
------------------------------------------------------------------------
r589173 | bayard | 2007-10-27 11:35:02 -0700 (Sat, 27 Oct 2007) | 1 line
Changed paths:
   A /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI138Test.java

Adding Brian's workaround tests from CLI-148

> arguments are interpreted as options
> ------------------------------------
>
>                 Key: CLI-148
>                 URL: https://issues.apache.org/jira/browse/CLI-148
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.1
>         Environment: Debian stable x86 with Sun JDK 1.6.0_02
>            Reporter: Matt Ray
>            Priority: Minor
>         Attachments: BugCLI138Test.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.