From: Daniel Carrera Date: 2003-10-30T05:35:04+09:00 Subject: Re: getoption long question > opts = GetoptLong.new(_ > ���[ "--create-test", "-T", GetoptLong::NO_ARGUMENT ], > ) > > what if I don't actually want short options such as the -T? (running out > of suitable letters, or something) > > How would I use it then? opts = GetoptLong.new( [ "--create-test", GetoptLong::NO_ARGUMENT ] ) The short options are optional. GetoptLong is very flexible. You can have as many or as few short and long options as you like. $ cat test.rb require 'getoptlong' opts = GetoptLong.new( [ "--create-test", GetoptLong::NO_ARGUMENT ] ) $ ruby test.rb $ Cheers, -- Daniel Carrera | OpenPGP KeyID: 9AF77A88 PhD grad student. | Mathematics Dept. | "To understand recursion, you must first UMD, College Park | understand recursion".