Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52EB0E3A9 for ; Sat, 19 Jan 2013 14:58:14 +0000 (UTC) Received: (qmail 40717 invoked by uid 500); 19 Jan 2013 14:58:13 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 40270 invoked by uid 500); 19 Jan 2013 14:58:11 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 40085 invoked by uid 99); 19 Jan 2013 14:58:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 14:58:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.neidhart@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 14:58:02 +0000 Received: by mail-wi0-f182.google.com with SMTP id hn14so3763830wib.15 for ; Sat, 19 Jan 2013 06:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=yIU+JxsqYxI9ZmUTYA+lyBFw5qI345I5SWVWZmh0p+I=; b=OYWhMdTbHSlPbcmOPdhLQQZgwsCUEtHr4i5PcQtWM75JSlDHJbAWUtBH9xpE2THlh8 L/fM45B468OWx644R+s18UCoYLvljqIyBrXK/0MQut06Tj1QszB6m/hdHvYcy269/HYQ GpeH6pO+trxycmlOMxeUfPmf1QyBzKuRn++K4SdADbkNBJkdBJ6Y03rfRyRe8UaoZ6Gy whgBAhOreoBYrkQLFaiU+4vWZ3RoptoPdXBCPWA0V5MUDyKhmMGFyDaQwLJiMwyPVJTe QVV7rKdZzlb+4nrX7q9RYLvs+mCn4VoVKbDlH1tMxTxs4OWtkM0r/fXEfyWuKVqKAw8/ g8mw== X-Received: by 10.180.103.136 with SMTP id fw8mr8266450wib.27.1358607461756; Sat, 19 Jan 2013 06:57:41 -0800 (PST) Received: from [192.168.1.2] (ip-83-134-116-21.dsl.scarlet.be. [83.134.116.21]) by mx.google.com with ESMTPS id dm3sm8219264wib.9.2013.01.19.06.57.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 19 Jan 2013 06:57:40 -0800 (PST) Message-ID: <50FAB463.2030804@gmail.com> Date: Sat, 19 Jan 2013 15:57:39 +0100 From: Thomas Neidhart User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [CLI] OptionGroup Broken? References: In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 01/18/2013 05:14 PM, William Speirs wrote: > I'm trying to use OptionGroup to mutually exclude arguments, and it seems > to be broken. I've setup --ip-address & --hostname as options in a single > group, then provide both on the "command line" and would expect the parser > to throw an AlreadySelectedException, but it doesn't... it happily parses > both. Should I raise a JIRA issue for this, or am I totally missing > something? Hi Bill, just tested it with the latest trunk and I receive the following exception: org.apache.commons.cli.AlreadySelectedException: The option 'hostname' was specified but an option from this group has already been selected: 'ip-address' So it seems to be already fixed, although I do not know when the next release will be available. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org