commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Egge (JIRA)" <>
Subject [jira] Updated: (CLI-126) CLI2 should support multiple property args on command line
Date Thu, 23 Aug 2007 02:00:32 GMT


Brian Egge updated CLI-126:

    Attachment: patchCLI126.patch

I added the ability for properties to be assigned to multiple collections.  The getProperty
method now takes an Option, which should be a PropertyOption.  If not specified, it defaults
a the '-D' option created by 'new PropertyOption'.

> CLI2 should support multiple property args on command line
> ----------------------------------------------------------
>                 Key: CLI-126
>                 URL:
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: CLI-2.x
>    Affects Versions: 2.0
>            Reporter: Sanjay Dahiya
>             Fix For: 2.1
>         Attachments: patchCLI126.patch
> 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.
You can reply to this email to add a comment to the issue online.

View raw message