commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Java Samurai <javasamur...@yahoo.com>
Subject CLI - HelpFormatter print error.
Date Thu, 14 Oct 2004 14:10:32 GMT
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


Mime
View raw message