Re: optparse question: how to warn of missing positional arguments

Artie Ziff <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CAP0EqC9paPronQ0Dxis3k4_V-N3pFuYx4yuAm-rjK-Fq5MwyMg@mail.gmail.com>
Hi Jeremy,

This example really help wrap my head around the moving parts.
In fact, I am able to omit the block: opts.on('-h')

And just changed the test condition with ARGV to be less than a particular
count of ARGs.

Many thanks for showing where to put everything so that it is well
organized.

-az


Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.