Forum: Ruby Re: I need some help with OptionsParser

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Berger, Daniel (Guest)
on 2006-03-20 22:13
(Received via mailing list)
> c:\temp>

This thread is a testament to why I wrote the getopt package:

# test.rb
require 'getopt/long'
include Getopt

opts = Long.getopts(['--size', '-s', REQUIRED])
p opts['size']

C:\ruby test.rb -s 'Very Big'
"Very Big"


gem install getopt :)


on 2006-03-20 22:23
(Received via mailing list)

Thanks :)
on 2006-03-20 22:29
(Received via mailing list)
PS: Thanks to everyone for the help!  THought I was crazy here...
This topic is locked and can not be replied to.