From: Stefano Crocco Date: 2008-04-06T00:06:04+09:00 Subject: Re: Is there any Ruby parser for command inline parameters (ARGV[])? On Saturday 05 April 2008, IƱaki Baz Castillo wrote: > Hi, I usually do Ruby scripts for some tasks and many of them allow inline > parameters, for example: > > ./script1.rb -n -vv -o file.out filein > > Is there any Ruby library/gem to parse inline parameters easily? this is, > parsing ARGV Array. > > Thanks. There's OptionParser which is included in ruby standard library. Use ri OptionParser to learn more about it (you need to require 'optparse' before you can use it) Stefano