I'm just starting to use optparse. I want to force the user to supply an
option. How can I do this with optparse? Here's what I have

email = nil
ARGV.options { | opt |
    opt.on('-e', '--email EMAIL', EMAIL address') { | e | email = e }
    opt.parse!
}

This forces the '--email' option to take an argument. What I want to do is
force the user to supply an '--email EMAIL' option.

Do I have to append

    usage() if email.nil?

and if so, how do I get the optarg obejct's help message?

Thanks for your help.

Jim
-- 
Jim Menard, jimm / io.com, http://www.io.com/~jimm/
"Lead me not into temptation. I can find it myself."
    -- Jeffrey Kaplan's .sig, seen in rec.humor.oracle.d