From: Steve Litt Date: 2005-12-29T00:20:13+09:00 Subject: Re: Command-line option parsing On Wednesday 28 December 2005 08:37 am, Robert Klemme wrote: > Eric J. Roode wrote: > > Greetings, > > > > I'm new to ruby (from Perl). I notice there are several > > command-line options parsing modules. The two that stuck out were > > GetoptLong and OptionsParser. GetoptLong suffers from being "the > > same old Getopt". OptionsParser claims to be "more advanced and more > > ruby-like", but has extremely poor documentation. > > > > Are these the best two modules out there? Is there an emerging > > "standard" module? (In Perl, Getopt::Long is by far the most > > commonly-used module). > > I used to use GetopLong in the beginning but switched to OptionParser. > Agreee, the documentation could be better but if you look carefully at the > example given in RDoc you get pretty much everything you need. I'm not > sure about a standard parser but my impression was that OptionParser is > more widely used. But I may be wrong here. > > Kind regards > > robert Does OptionParser come with standard Ruby? SteveT Steve Litt http://www.troubleshooters.com slitt@troubleshooters.com