--- lib/commandline/application.rb.orig	2007-11-04 23:01:34.000000000 +0100
+++ lib/commandline/application.rb	2007-11-04 23:01:36.000000000 +0100
@@ -170,7 +170,6 @@
   def man
     require 'text/format'
     f = Text::Format.new
-    f = Text::Format.new
     f.columns = @columns
     f.first_indent  = 4
     f.body_indent   = @body_indent
@@ -335,7 +334,7 @@
     #
     # Formatting defaults
     #
-    console_width = ENV["COLUMNS"]
+    console_width = ENV["COLUMNS"].nil? ? nil : (Integer(ENV["COLUMNS"]) rescue ArgumentError nil)
     @columns = 
       if console_width.nil?
         DEFAULT_CONSOLE_WIDTH
