2007/12/4, Curt Sampson <cjs / cynic.net>:
> Something like this, perhaps?
>
>     a = ARGV[0] || fail('arg required')

Here's some more

a = ARGV.shift or raise "arg required"
a = ARGV.shift or raise ArgumentError, "arg required"

For more complex cmd line parsing I'd use OptionParser.

Kind regards

robert

-- 
use.inject do |as, often| as.you_can - without end