Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 24246 invoked from network); 14 Oct 2004 14:13: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 14:13:31 -0000 Received: (qmail 32219 invoked by uid 500); 14 Oct 2004 14:10:49 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 32060 invoked by uid 500); 14 Oct 2004 14:10:46 -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 31924 invoked by uid 99); 14 Oct 2004 14:10:42 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.136.227.82] (HELO web20624.mail.yahoo.com) (216.136.227.82) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 14 Oct 2004 07:10:40 -0700 Message-ID: <20041014141032.35707.qmail@web20624.mail.yahoo.com> Received: from [68.96.138.8] by web20624.mail.yahoo.com via HTTP; Thu, 14 Oct 2004 07:10:32 PDT Date: Thu, 14 Oct 2004 07:10:32 -0700 (PDT) From: Java Samurai Subject: CLI - HelpFormatter print error. To: commons-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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