From: Jan Svitok Date: 2007-01-23T23:55:03+09:00 Subject: Re: option parser: decrease distance between arg and explanation On 1/23/07, Patrick Gundlach wrote: > Hi all, > > I use option parser and I would like to decrease a distance in the > output. Example: > > #!/usr/bin/env ruby > > require "optparse" > > a=ARGV.options { |opts| + opts.summary_width = 10 > opts.on("-a","--all","do everything") > opts.on("-h","--help") do > puts opts > exit 0 > end > opts.parse! > } > > result: > > Usage: optparsetest [options] > -a, --all do everything > -h, --help > > > I'd like to decrease the distance between "--all" and "do everything, use OptionParser#summary_width http://ruby-doc.org/core/classes/OptionParser.html, or RTFineS (they are pretty readable) ;-)