Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 87468 invoked from network); 14 Oct 2004 22:57:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Oct 2004 22:57:31 -0000 Received: (qmail 88249 invoked by uid 500); 14 Oct 2004 22:57:25 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 87996 invoked by uid 500); 14 Oct 2004 22:57:23 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 87981 invoked by uid 99); 14 Oct 2004 22:57:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Oct 2004 15:57:21 -0700 X-Sasl-enc: KOElior3zyVJeFY5wget1Q 1097794638 Received: from [192.168.89.3] (81-178-254-174.dsl.pipex.com [81.178.254.174]) by www.fastmail.fm (Postfix) with ESMTP id 79447C305A8 for ; Thu, 14 Oct 2004 18:57:17 -0400 (EDT) Message-ID: <416F044C.8000208@imapmail.org> Date: Thu, 14 Oct 2004 23:57:16 +0100 From: Rob Oxspring User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: CLI - HelpFormatter print error. References: <20041014141032.35707.qmail@web20624.mail.yahoo.com> In-Reply-To: <20041014141032.35707.qmail@web20624.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for spotting that, The value passed in to this method now has a minimum value of 1. This fix is available in cvs if you want to build from source or will make it into my next beta bundle (not sure when though). Thanks again, Rob Java Samurai wrote: > I am using CLI 2.0 and experienced a bug in > org.apache.commons.cli2.util.HelpFormatter.wrap() > method. > > The actual bug is in method printHelp(). There is a > variable named descriptionWidth which is calculated to > be a negative value which causes a problem in the > wrap() method when creating the wrapped string. I > fixed the problem by making sure it is a positive > number. > > Maybe this has already been fixed? If not I can > provide more details. > > Thanks > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org