From: nobu.nokada@... Date: 2004-03-25T01:16:26+09:00 Subject: Re: optparse and required options Hi, At Thu, 25 Mar 2004 00:54:28 +0900, Jim Menard wrote in [ruby-talk:95739]: > This forces the '--email' option to take an argument. What I want to do is > force the user to supply an '--email EMAIL' option. optparse itself doesn't supply options semantics. > Do I have to append > > usage() if email.nil? > > and if so, how do I get the optarg obejct's help message? You have to write mandatory and/or exclusive condtions by yourself. email or abort ARGV.options.to_s -- Nobu Nakada