commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLI-126) CLI2 should support multiple property args on command line
Date Wed, 29 Nov 2006 13:50:23 GMT
    [ http://issues.apache.org/jira/browse/CLI-126?page=comments#action_12454307 ] 
            
Sebb commented on CLI-126:
--------------------------

This could break exisiting scripts that rely on the current behaviour, so (if implemented)
the existing method should return the last definition to maintain compatibility.

What is the use case for this?

> CLI2 should support multiple property args on command line
> ----------------------------------------------------------
>
>                 Key: CLI-126
>                 URL: http://issues.apache.org/jira/browse/CLI-126
>             Project: Commons CLI
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Sanjay Dahiya
>
> If I specify a command line like -Dsomekey=value1 -Xsomekey=value2, after parsing the
value of somekey is overwritten as WritableCommandLine maintains a single set for all properties
irrespective of switch. 
> There should be a way of handling this case. CommandLine should probably return a set
of all the switches from which we get properties. 
> comments? I can submit a patch for this if its ok to make this change. 

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