Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 1922 invoked from network); 29 Oct 2007 11:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 11:00:16 -0000 Received: (qmail 69821 invoked by uid 500); 29 Oct 2007 11:00:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 69679 invoked by uid 500); 29 Oct 2007 11:00:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 69616 invoked by uid 99); 29 Oct 2007 11:00:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 04:00:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 11:00:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B9A577141EB for ; Mon, 29 Oct 2007 03:59:50 -0700 (PDT) Message-ID: <3509077.1193655590741.JavaMail.jira@brutus> Date: Mon, 29 Oct 2007 03:59:50 -0700 (PDT) From: "Brian Egge (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-126) CLI2 should support multiple property args on command line MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538454 ] Brian Egge commented on CLI-126: -------------------------------- Sorry about the patch not going in ok. I have another look. I might have forgotten to include a file, as I had several patches going on at once. > 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.