U:RDoc::AnyMethod[iI"ordering=:EFI"GetoptLong#ordering=;TF: publico:RDoc::Markup::Document: @parts["o:RDoc::Markup::Paragraph; [I"@Set the handling of the ordering of options and arguments. ;TI"GA RuntimeError is raised if option processing has already started.;To:RDoc::Markup::BlankLineo; ; [I"MThe supplied value must be a member of GetoptLong::ORDERINGS. It alters ;TI"*the processing of options as follows:;T@o; ; [I"REQUIRE_ORDER :;T@o; ; [I"6Options are required to occur before non-options.;T@o; ; [I"NProcessing of options ends as soon as a word is encountered that has not ;TI"1been preceded by an appropriate option flag.;T@o; ; [ I"HFor example, if -a and -b are options which do not take arguments, ;TI"Gparsing command line arguments of '-a one -b two' would result in ;TI"F'one', '-b', 'two' being left in ARGV, and only ('-a', '') being ;TI"%processed as an option/arg pair.;T@o; ; [I"?This is the default ordering, if the environment variable ;TI"NPOSIXLY_CORRECT is set. (This is for compatibility with GNU getopt_long.);T@o; ; [I"PERMUTE :;T@o; ; [I"HOptions can occur anywhere in the command line parsed. This is the ;TI"default behavior.;T@o; ; [I"LEvery sequence of words which can be interpreted as an option (with or ;TI"Mwithout argument) is treated as an option; non-option words are skipped.;T@o; ; [ I"MFor example, if -a does not require an argument and -b optionally takes ;TI"Nan argument, parsing '-a one -b two three' would result in ('-a','') and ;TI"J('-b', 'two') being processed as option/arg pairs, and 'one','three' ;TI"being left in ARGV.;T@o; ; [I"DIf the ordering is set to PERMUTE but the environment variable ;TI"HPOSIXLY_CORRECT is set, REQUIRE_ORDER is used instead. This is for ;TI"(compatibility with GNU getopt_long.;T@o; ; [I"RETURN_IN_ORDER :;T@o; ; [I"GAll words on the command line are processed as options. Words not ;TI"Epreceded by a short or long option flag are passed as arguments ;TI")with an option of '' (empty string).;T@o; ; [I"MFor example, if -a requires an argument but -b does not, a command line ;TI"Pof '-a one -b two three' would result in option/arg pairs of ('-a', 'one') ;TI"<('-b', ''), ('', 'two'), ('', 'three') being processed.;T: @fileI"lib/getoptlong.rb;T:0@omit_headings_from_table_of_contents_below000[I"(ordering);T@KFI"GetoptLong;TcRDoc::NormalClass00