[ 
http://issues.apache.org/jira/browse/CLI-126?page=comments#action_12454342 ] 
            
Sanjay Dahiya commented on CLI-126:
-----------------------------------

I am using trying to use cli2 in a case where we pass multiple property 
key-value pairs to command line. 

For example:
bin/scriptToRun -conf<key>=<value> -env<key>=<value> 

conf properties are used in a different manner ( override system configuration 
) whereas env properties are passed on as env variables to other commands. 
mixing these would cause system to break so after parsing the command line I 
need to identify which property was passed with which trigger. 
Is there another way of doing this which I am missing ? 

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to