From: nobu.nokada@... Date: 2004-11-12T21:50:44+09:00 Subject: Re: From getoptlong to optparse Hi, At Fri, 12 Nov 2004 20:28:27 +0900, Robert Klemme wrote in [ruby-talk:120033]: > > Then loop subcommand parser until ARGV becomes empty using > > #order! instead of #parse!. > > I got lost somewhere in the diff below. :-) What eaxtly is the difference > between "order!" and "parse!"? OptionParser has two kinds of behaviors; "in order" and "permutation" mode. The former (#order! method) stops as soon as a non-option argument is encountered and is same as getopt_long(3) when the environment variable POSIXLY_CORRECT is set, and the latter (#permute! method) processes all option arguments at first and leaves non-option arguments. #parse! method switches the two behavior by the environment variable. -- Nobu Nakada