You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2007/10/27 20:46:50 UTC
[jira] Issue Comment Edited: (CLI-126) CLI2 should support multiple
property args on command line
[ https://issues.apache.org/jira/browse/CLI-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538243 ]
bayard edited comment on CLI-126 at 10/27/07 11:46 AM:
--------------------------------------------------------------
Failed tests:
testWithMaximum(org.apache.commons.cli2.bug.BugCLI145Test)
at org.apache.commons.cli2.bug.BugCLI145Test.testWithMaximum(BugCLI145Test.java:55)
=-=-=
Unexpected 1 while processing options
Usage:
[-a <a1> [<a2> ...] -b <b1> <b2> [<b3> [<b4>]]]
options
-a (--a) a [a ...]
-b (--b) b b [b [b]]
was (Author: bayard):
Failed tests:
testWithMaximum(org.apache.commons.cli2.bug.BugCLI145Test)
at org.apache.commons.cli2.bug.BugCLI145Test.testWithMaximum(BugCLI145Test.java:55)
> CLI2 should support multiple property args on command line
> ----------------------------------------------------------
>
> Key: CLI-126
> URL: https://issues.apache.org/jira/browse/CLI-126
> 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.