commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39335] New: - argument defaults prevent commandline usage.
Date Tue, 18 Apr 2006 08:17:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39335>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39335

           Summary: argument defaults prevent commandline usage.
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CLI
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: aks@decisionsoft.co.uk


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
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