From: Ryan Davis Date: 2010-11-16T06:52:24+09:00 Subject: Re: Stupid optparse question On Nov 15, 2010, at 13:27 , Chris Patti wrote: > How can I make my code print the usage even if zero options are given? > I had *thought* opts.on_tail would do this, but it doesn't seem to be > working. The usage prints properly if I use -h though: well... they are called "options", not "mandatories" :P I usually do this near the top: ARGV << "-h" if ARGV.empty?