commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Oxspring <roxspr...@imapmail.org>
Subject Re: CLI - HelpFormatter print error.
Date Thu, 14 Oct 2004 22:57:16 GMT
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


Mime
View raw message