Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 92552 invoked from network); 28 Jul 2006 19:58:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 19:58:55 -0000 Received: (qmail 71432 invoked by uid 500); 28 Jul 2006 19:58:51 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 71229 invoked by uid 500); 28 Jul 2006 19:58:51 -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 71218 invoked by uid 99); 28 Jul 2006 19:58:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 12:58:51 -0700 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.198.202] (HELO smtp103.sbc.mail.mud.yahoo.com) (68.142.198.202) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 28 Jul 2006 12:58:49 -0700 Received: (qmail 37993 invoked from network); 28 Jul 2006 19:58:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:From:Subject:Date:To:X-Mailer; b=DnisDtDlDqsjj9VDtaDgqpHSYf2+8dmYF5c3ribdVsJd7gLu4ThS1Obo5avwbj59HoIkEmQIBunp0V1eA8DQ7FCy4iDnWjzt8CuLKQR0Pa02I8voUszTPhB0paTy5cq7xxpK+3Iq8x/+K6KNSB3O2ikMZrZv1IE7ZmASMuBu5xQ= ; Received: from unknown (HELO ?192.168.0.105?) (swingguy@sbcglobal.net@75.4.239.30 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 28 Jul 2006 19:58:27 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060728094528.GL3255@itchen.dsl.local> References: <20060727112550.GF3255@itchen.dsl.local> <403F023F-F38F-4F88-9CB5-317CEF0232AF@yahoo.com> <20060728094528.GL3255@itchen.dsl.local> Content-Type: multipart/alternative; boundary=Apple-Mail-4--284152972 Message-Id: From: =?ISO-8859-1?Q?Miguel_Mu=F1oz?= Subject: Re: [CLI] Required and Optional Groups Date: Fri, 28 Jul 2006 12:58:26 -0700 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-4--284152972 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Andrew, Food for thought: I'm not sure if this is contained in your recent =20 bug reports on this problem, but there seems to be a second issue =20 here that should be addressed. In the example below, the DB/SCM/SCW =20 is in one group, and the -s is in a different group, but they're =20 displayed with a single set of square brackets around them. as in =20 line 2 below: It seems to me that this is also a bug. The child group =20= should get its own set of square brackets, as in line 1 below. Was this also reflected in your two recent bug reports? -- Miguel On Jul 28, 2006, at 2:45 AM, Andrew Shirley wrote: > On Thu, Jul 27, 2006 at 11:44:12AM -0700, Miguel Mu=F1oz wrote: >> Andrew, >> >> Thank you for the suggestion, but it didn't work. Although some of =20= >> the info in my post was wrong. I claimed I was getting this: >> >> ShellCommand [-DB|-SCM|-SCW] [-s ] // line 1 >> >> I was actually getting this: >> >> ShellCommand [-DB|-SCM|-SCW -s ] // line 2 >> >> What I want hasn't changed: >> >> ShellCommand -DB|-SCM|-SCW [-s ] > > The problem is that the 'all' group is has a minimum of 0 and so gets > square-bracketed. This is incorrect as we know that project group is > required and so we will have to have at least one argument. I'm not > really sure of a way to solve this, I think we will have to improve =20= > the > concept of when a group is optional. It will validate the arguments > correctly and it is just the HelpFormatter which is incorrect. As an > aside, I found that Groups aren't counted in thw minimum/maximum count > and I think this is wrong as if they were counted, you could give it a > hint by saying that all has a minimum of 1 (the project group) however > as it stands, this would make -s required. I will file a bug about =20 > these > things shortly. > > Sorry this wasn't more helpful. > > Andrew Shirley > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > ------------------------------------------- Miguel Mu=F1oz SwingGuy1024@yahoo.com 323/225-7285 ------------------------------------------- The Sun, with all those planets revolving around it and dependent on =20 it, can still ripen a vine of grapes like it had nothing else to do =20 in the world. -- Galileo ------------------------------------------- There are seven sins in the world. Wealth without work. Pleasure without conscience. Knowledge without character. Commerce without morality. Science without humanity. Worship without sacrifice. Politics without principle. -- Mohandas Gandhi ------------------------------------------- If tyranny and oppression come to this land, it will come in the =20 guise of fighting a foreign enemy. -- James Madison --Apple-Mail-4--284152972--