commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLI-61) [cli] argument defaults prevent commandline usage.
Date Mon, 10 Jul 2006 07:17:30 GMT
     [ http://issues.apache.org/jira/browse/CLI-61?page=all ]

Henri Yandell updated CLI-61:
-----------------------------

    Bugzilla Id:   (was: 39335)
    Fix Version: 2.0

> [cli] argument defaults prevent commandline usage.
> --------------------------------------------------
>
>          Key: CLI-61
>          URL: http://issues.apache.org/jira/browse/CLI-61
>      Project: Commons CLI
>         Type: Bug

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Andrew Shirley
>      Fix For: 2.0
>  Attachments: Bug39335Test.java, defaultsBugFix.patch
>
> I have found a bug in the following scenario:
> You have an option which can take a single argument which in turn has a default
> value. You supply a value on the command line which is intended to override
> this default however as the CommandLine already has a value for this Option,
> this second value is not allowed and the command line cannot be parsed.
> I have created a patch which adds a method to WritableCommandLine and its Impl
> which allows you to retrieve the undefaulted values for an Option. I have then
> changed ArgumentImpl to use this method to determine the argument count

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message