From: Tom Pollard Date: 2007-03-08T08:53:35+09:00 Subject: Re: Adding descriptive text to OptionParser output On Mar 7, 2007, at 6:45 PM, prhlava wrote: >> I'd like to add a paragraph of text to my usage message, describing >> the non-option arguments accepted by my script. > > opts.on("-h", "--help", "print this help") do > puts opts > print "\n", explanation > exit 1 > end [...] > if ARGV.length == 0 > Options.parse(["-h"]) > exit 1 > end Thanks, Vlad. That's better than what I had been doing. Tom