Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 26115 invoked from network); 2 Jun 2006 13:34:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 13:34:31 -0000 Received: (qmail 55568 invoked by uid 500); 2 Jun 2006 13:34:28 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 55549 invoked by uid 500); 2 Jun 2006 13:34:27 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 55529 invoked by uid 99); 2 Jun 2006 13:34:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 06:34:27 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.176.84] (HELO web26808.mail.ukl.yahoo.com) (217.146.176.84) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 Jun 2006 06:34:26 -0700 Received: (qmail 81093 invoked by uid 60001); 2 Jun 2006 13:34:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=k8TFyZIWN9ABBv0Neg8yPI45Xhso3+SdUzgQKC0pYlMIBIUFUoUAnDXYxn9rxm1Zienitukzsfhud3dZ4hkhWdDGEsvSzgFBT1bKkvj7oy8dRP0aGpj4pO3PU3I4+PRpcxV+27anmFly2HfZAvm4Z60Rl0G8qNclY06VXZGg67g= ; Message-ID: <20060602133403.81091.qmail@web26808.mail.ukl.yahoo.com> Received: from [195.149.215.221] by web26808.mail.ukl.yahoo.com via HTTP; Fri, 02 Jun 2006 06:34:03 PDT Date: Fri, 2 Jun 2006 06:34:03 -0700 (PDT) From: David Subject: [CLI]: Can have two group options with an option with the same shortname? To: commons-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-271784940-1149255243=:79106" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-271784940-1149255243=:79106 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dear members, I have two group options appended to my main group option of my parser. Let's say -report group option and -process group option. On both I would like to define the option -date, but I don't know how to distinguish each case when invoking: line.hasOption("-date"); is there any way to specifically say, I just want to know if has option -date from group option -report? Thansk in advance, David Note: I am using CLI2 --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-271784940-1149255243=:79106--