commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Egge (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLI-148) arguments are interpreted as options
Date Fri, 14 Sep 2007 21:00:33 GMT

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

Brian Egge updated CLI-148:
---------------------------

    Attachment: BugCLI138Test.java

Source code showing the workaround for when the argument could also be interpreted as an option.

> 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
>
>
> related to https://issues.apache.org/jira/browse/CLI-71
> 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.


Mime
View raw message