From: "Iñaki Baz Castillo" Date: 2008-04-06T00:58:20+09:00 Subject: Re: Is there any Ruby parser for command inline parameters (ARGV[])? El Sábado, 5 de Abril de 2008, Stefano Crocco escribió: > 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) Thanks a lot, I'll try it. -- Iñaki Baz Castillo