Re: optparse question: how to warn of missing positional arguments
Ryan Davis <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <[email protected]> |
> On Mar 22, 2019, at 15:26, Artie Ziff <[email protected]> wrote: > > This example really help wrap my head around the moving parts. > In fact, I am able to omit the block: opts.on('-h’) I wouldn’t. The main difference is `exit 0` vs `exit 1`. Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>