ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- PKt]2WE  show_version-c.rinu[U:RDoc::AnyMethod[iI"show_version:ETI"OptionParser::show_version;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*pkgs);T@ FI"OptionParser;TcRDoc::NormalClass00PKt] SC(InvalidArgument/cdesc-InvalidArgument.rinu[U:RDoc::NormalClass[iI"InvalidArgument:ETI""OptionParser::InvalidArgument;TI"OptionParser::ParseError;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"CRaises when the given argument does not match required format.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]G-Q77 List/new-c.rinu[U:RDoc::AnyMethod[iI"new:ETI"OptionParser::List::new;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Just initializes all instance variables.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" List;TcRDoc::NormalClass00PKt]9%ޙList/append-i.rinu[U:RDoc::AnyMethod[iI" append:EFI"OptionParser::List#append;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"JAppends +switch+ at the tail of the list, and associates short, long ;TI"-and negated long options. Arguments are:;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +switch+;T; [o; ; [I"2OptionParser::Switch instance to be inserted.;To;;[I"+short_opts+;T; [o; ; [I"!List of short style options.;To;;[I"+long_opts+;T; [o; ; [I" List of long style options.;To;;[I"+nolong_opts+;T; [o; ; [I"2List of long style options with "no-" prefix.;T@o:RDoc::Markup::Verbatim; [I"7append(switch, short_opts, long_opts, nolong_opts);T: @format0: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@1FI" List;TcRDoc::NormalClass00PKt]* N^List/search-i.rinu[U:RDoc::AnyMethod[iI" search:EFI"OptionParser::List#search;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"ISearches +key+ in +id+ list. The result is returned or yielded if a ;TI"8block is given. If it isn't found, nil is returned.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I"val;T[I"(id, key);T@FI" List;TcRDoc::NormalClass00PKt]dpBBList/accept-i.rinu[U:RDoc::AnyMethod[iI" accept:EFI"OptionParser::List#accept;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See OptionParser.accept.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(t, pat = /.*/m, &block);T@FI" List;TcRDoc::NormalClass00PKt]S::List/list-i.rinu[U:RDoc::Attr[iI" list:ETI"OptionParser::List#list;TI"R;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-List of all switches and summary string.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser::List;TcRDoc::NormalClass0PKt]IOOList/long-i.rinu[U:RDoc::Attr[iI" long:ETI"OptionParser::List#long;TI"R;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BMap from long style option switches to actual switch objects.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser::List;TcRDoc::NormalClass0PKt]{%List/prepend-i.rinu[U:RDoc::AnyMethod[iI" prepend:EFI"OptionParser::List#prepend;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"JInserts +switch+ at the head of the list, and associates short, long ;TI"-and negated long options. Arguments are:;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +switch+;T; [o; ; [I"2OptionParser::Switch instance to be inserted.;To;;[I"+short_opts+;T; [o; ; [I"!List of short style options.;To;;[I"+long_opts+;T; [o; ; [I" List of long style options.;To;;[I"+nolong_opts+;T; [o; ; [I"2List of long style options with "no-" prefix.;T@o:RDoc::Markup::Verbatim; [I"8prepend(switch, short_opts, long_opts, nolong_opts);T: @format0: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@1FI" List;TcRDoc::NormalClass00PKt]XList/summarize-i.rinu[U:RDoc::AnyMethod[iI"summarize:EFI"!OptionParser::List#summarize;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JCreates the summary table, passing each line to the +block+ (without ;TI"Fnewline). The arguments +args+ are passed along to the summarize ;TI",method which is called on every option.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*args, &block);T@FI" List;TcRDoc::NormalClass00PKt]W--List/reject-i.rinu[U:RDoc::AnyMethod[iI" reject:EFI"OptionParser::List#reject;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See OptionParser.reject.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(t);T@FI" List;TcRDoc::NormalClass00PKt]VVList/atype-i.rinu[U:RDoc::Attr[iI" atype:ETI"OptionParser::List#atype;TI"R;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GMap from acceptable argument types to pattern and converter pairs.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser::List;TcRDoc::NormalClass0PKt]EaaList/each_option-i.rinu[U:RDoc::AnyMethod[iI"each_option:EFI"#OptionParser::List#each_option;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BIterates over each option, passing the option to the +block+.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (&block);T@FI" List;TcRDoc::NormalClass00PKt]ֶRRList/short-i.rinu[U:RDoc::Attr[iI" short:ETI"OptionParser::List#short;TI"R;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CMap from short style option switches to actual switch objects.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser::List;TcRDoc::NormalClass0PKt],,List/complete-i.rinu[U:RDoc::AnyMethod[iI" complete:EFI" OptionParser::List#complete;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"KSearches list +id+ for +opt+ and the optional patterns for completion ;TI"K+pat+. If +icase+ is true, the search is case insensitive. The result ;TI"Kis returned or yielded if a block is given. If it isn't found, nil is ;TI"returned.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"+(id, opt, icase = false, *pat, &block);T@FI" List;TcRDoc::NormalClass00PKt]$6́List/get_candidates-i.rinu[U:RDoc::AnyMethod[iI"get_candidates:ETI"&OptionParser::List#get_candidates;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I"__send__(id).keys;T[I" (id);T@ FI" List;TcRDoc::NormalClass00PKt]B5List/cdesc-List.rinu[U:RDoc::NormalClass[iI" List:ETI"OptionParser::List;TI" Object;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"HSimple option list providing mapping from short and/or long option ;TI"Lstring to OptionParser::Switch and mapping from acceptable argument to ;TI"Hmatching pattern and converter pair. Also provides summary feature.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[ [ I" atype;TI"R;T: publicFI"lib/optparse.rb;T[ I" list;TI"R;T; F@[ I" long;TI"R;T; F@[ I" short;TI"R;T; F@[[[[I" class;T[[; [[I"new;T@[:protected[[: private[[I" instance;T[[; [ [I" accept;F@[I" append;F@[I" complete;F@[I"each_option;F@[I" prepend;F@[I" reject;F@[I" search;F@[I"summarize;F@[; [[;[[I" update;F@[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]Y-8sson-i.rinu[U:RDoc::AnyMethod[iI"on:EFI"OptionParser#on;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KAdd option switch and handler. See #make_switch for an explanation of ;TI"parameters.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*opts, &block);T@FI"OptionParser;TcRDoc::NormalClass00PKt]N(AmbiguousOption/cdesc-AmbiguousOption.rinu[U:RDoc::NormalClass[iI"AmbiguousOption:ETI""OptionParser::AmbiguousOption;TI"OptionParser::ParseError;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"?Raises when ambiguously completable string is encountered.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]ꄭdSS with-c.rinu[U:RDoc::AnyMethod[iI" with:EFI"OptionParser::with;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"LInitializes a new instance and evaluates the optional block in context ;TI"Iof the instance. Arguments +args+ are passed to #new, see there for ;TI"description of parameters.;To:RDoc::Markup::BlankLineo; ; [I"MThis method is *deprecated*, its behavior corresponds to the older #new ;TI" method.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*args, &block);T@FI"OptionParser;TcRDoc::NormalClass00PKt]'T release-i.rinu[U:RDoc::Attr[iI" release:ETI"OptionParser#release;TI"W;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Release code;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]@K- warn-i.rinu[U:RDoc::AnyMethod[iI" warn:EFI"OptionParser#warn;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(mesg = $!);T@ TI"OptionParser;TcRDoc::NormalClass00PKt]Y[[set_summary_width-i.rinu[U:RDoc::Attr[iI"set_summary_width:EFI"#OptionParser#set_summary_width;TI"RW;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Width for option list portion of summary. Must be Numeric.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]-*)*NeedlessArgument/cdesc-NeedlessArgument.rinu[U:RDoc::NormalClass[iI"NeedlessArgument:ETI"#OptionParser::NeedlessArgument;TI"OptionParser::ParseError;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"KRaises when there is an argument for a switch which takes no argument.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]GVOOadditional_message-i.rinu[U:RDoc::AnyMethod[iI"additional_message:ETI"$OptionParser#additional_message;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Returns additional info.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(typ, opt);T@FI"OptionParser;TcRDoc::NormalClass00PKt]W 77default_argv-i.rinu[U:RDoc::Attr[iI"default_argv:ETI"OptionParser#default_argv;TI"RW;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"%Strings to be parsed in default.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt] ^$InvalidOption/cdesc-InvalidOption.rinu[U:RDoc::NormalClass[iI"InvalidOption:ETI" OptionParser::InvalidOption;TI"OptionParser::ParseError;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"%Raises when switch is undefined.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt](MissingArgument/cdesc-MissingArgument.rinu[U:RDoc::NormalClass[iI"MissingArgument:ETI""OptionParser::MissingArgument;TI"OptionParser::ParseError;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"BRaises when a switch with mandatory argument has no argument.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]V.. to_a-i.rinu[U:RDoc::AnyMethod[iI" to_a:EFI"OptionParser#to_a;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!Returns option summary list.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"OptionParser;TcRDoc::NormalClass00PKt]\>DD Acceptables/cdesc-Acceptables.rinu[U:RDoc::NormalModule[iI"Acceptables:EFI"OptionParser::Acceptables;T0o:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"LAcceptable argument classes. Now contains DecimalInteger, OctalInteger ;TI"Jand DecimalNumeric. See Acceptable argument classes (in source code).;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]/u order-i.rinu[U:RDoc::AnyMethod[iI" order:EFI"OptionParser#order;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KParses command line arguments +argv+ in order. When a block is given, ;TI")each non-option argument is yielded.;To:RDoc::Markup::BlankLineo; ; [I".Returns the rest of +argv+ left unparsed.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*argv, &block);T@FI"OptionParser;TcRDoc::NormalClass00PKt] r8,,new-i.rinu[U:RDoc::AnyMethod[iI"new:EFI"OptionParser#new;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Pushes a new List.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[I"();T@FI"OptionParser;TcRDoc::NormalClass00PKt][W4 4 make_switch-i.rinu[U:RDoc::AnyMethod[iI"make_switch:EFI"OptionParser#make_switch;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"NCreates an OptionParser::Switch from the parameters. The parsed argument ;TI"Cvalue is passed to the given block, where it can be processed.;To:RDoc::Markup::BlankLineo; ; [I"ASee at the beginning of OptionParser for some full examples.;T@o; ; [I"/+opts+ can include the following elements:;T@o:RDoc::Markup::List: @type: LABEL: @items[ o:RDoc::Markup::ListItem: @label[I"Argument style:;T; [o; ; [I"One of the following:;To:RDoc::Markup::Verbatim; [I"!:NONE, :REQUIRED, :OPTIONAL ;T: @format0o;;[I"Argument pattern:;T; [o; ; [ I"AAcceptable option argument format, must be pre-defined with ;TI"LOptionParser.accept or OptionParser#accept, or Regexp. This can appear ;TI"Donce or assigned as String if not present, otherwise causes an ;TI"ArgumentError. Examples:;To;; [I"Float, Time, Array ;T;0o;;[I"Possible argument values:;T; [o; ; [I"Hash or Array.;To;; [I"[:text, :binary, :auto] ;TI"2%w[iso-2022-jp shift_jis euc-jp utf8 binary] ;TI"7{ "jis" => "iso-2022-jp", "sjis" => "shift_jis" } ;T;0o;;[I"Long style switch:;T; [o; ; [I"KSpecifies a long style switch which takes a mandatory, optional or no ;TI"3argument. It's a string of the following form:;To;; [I"2"--switch=MANDATORY" or "--switch MANDATORY" ;TI""--switch[=OPTIONAL]" ;TI""--switch" ;T;0o;;[I"Short style switch:;T; [ o; ; [I"JSpecifies short style switch which takes a mandatory, optional or no ;TI"3argument. It's a string of the following form:;To;; [I""-xMANDATORY" ;TI""-x[OPTIONAL]" ;TI" "-x" ;T;0o; ; [I"JThere is also a special form which matches character range (not full ;TI" set of regular expression):;To;; [I""-[a-z]MANDATORY" ;TI""-[a-z][OPTIONAL]" ;TI""-[a-z]" ;T;0o;;[I"$Argument style and description:;T; [o; ; [I"KInstead of specifying mandatory or optional arguments directly in the ;TI";switch parameter, this separate parameter can be used.;To;; [I""=MANDATORY" ;TI""=[OPTIONAL]" ;T;0o;;[I"Description:;T; [o; ; [I"'Description string for the option.;To;; [I""Run verbosely" ;T;0o;;[I" Handler:;T; [o; ; [I"JHandler for the parsed argument value. Either give a block or pass a ;TI"#Proc or Method as an argument.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(opts, block = nil);T@|FI"OptionParser;TcRDoc::NormalClass00PKt]\candidate-i.rinu[U:RDoc::AnyMethod[iI"candidate:EFI"OptionParser#candidate;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (word);T@ FI"OptionParser;TcRDoc::NormalClass00PKt] iIɔnew-c.rinu[U:RDoc::AnyMethod[iI"new:ETI"OptionParser::new;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GInitializes the instance and yields itself if called with a block.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I" +banner+;T; [o; ; [I"Banner message.;To;;[I" +width+;T; [o; ; [I"Summary width.;To;;[I" +indent+;T; [o; ; [I"Summary indent.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[I"1(banner = nil, width = 32, indent = ' ' * 4);T@&FI"OptionParser;TcRDoc::NormalClass00PKt]..define_tail-i.rinu[U:RDoc::AnyMethod[iI"define_tail:EFI"OptionParser#define_tail;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[[I"def_tail_option;Fo;; [; @ ; 0I"(*opts, &block);T@ FI"OptionParser;TcRDoc::NormalClass00PKt]hNNver-i.rinu[U:RDoc::AnyMethod[iI"ver:EFI"OptionParser#ver;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns version string from program_name, version and release.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"OptionParser;TcRDoc::NormalClass00PKt]M,, remove-i.rinu[U:RDoc::AnyMethod[iI" remove:EFI"OptionParser#remove;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Removes the last List.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"OptionParser;TcRDoc::NormalClass00PKt]++ banner-i.rinu[U:RDoc::Attr[iI" banner:ETI"OptionParser#banner;TI"W;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"&Heading banner preceding summary.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]]++ getopts-c.rinu[U:RDoc::AnyMethod[iI" getopts:EFI"OptionParser::getopts;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See #getopts.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI"OptionParser;TcRDoc::NormalClass00PKt]␞&& base-i.rinu[U:RDoc::AnyMethod[iI" base:EFI"OptionParser#base;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Subject of #on_tail.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"OptionParser;TcRDoc::NormalClass00PKt]U**search_const-c.rinu[U:RDoc::AnyMethod[iI"search_const:ETI"OptionParser::search_const;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below00I"klass, cname, const;T[I"(klass, name);T@ FI"OptionParser;TcRDoc::NormalClass00PKt]Hh^33set_banner-i.rinu[U:RDoc::Attr[iI"set_banner:EFI"OptionParser#set_banner;TI"W;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"&Heading banner preceding summary.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]˭Ipermute%21-i.rinu[U:RDoc::AnyMethod[iI" permute!:EFI"OptionParser#permute!;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Same as #permute, but removes switches destructively. ;TI"+Non-option arguments remain in +argv+.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(argv = default_argv);T@FI"OptionParser;TcRDoc::NormalClass00PKt]tc permute-i.rinu[U:RDoc::AnyMethod[iI" permute:EFI"OptionParser#permute;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JParses command line arguments +argv+ in permutation mode and returns ;TI""list of non-option arguments.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*argv);T@FI"OptionParser;TcRDoc::NormalClass00PKt]|N;;separator-i.rinu[U:RDoc::AnyMethod[iI"separator:EFI"OptionParser#separator;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Add separator in summary.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (string);T@FI"OptionParser;TcRDoc::NormalClass00PKt]Substitution of getopts is possible as follows. Also see ;TI"OptionParser#getopts.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"def getopts(*args) ;TI"7 ($OPT = ARGV.getopts(*args)).each do |opt, val| ;TI"= eval "$OPT_#{opt.gsub(/[^A-Za-z0-9_]/, '_')} = val" ;TI" end ;TI"%rescue OptionParser::ParseError ;TI"end;T: @format0: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI" Arguable;FcRDoc::NormalModule00PKt];TArguable/cdesc-Arguable.rinu[U:RDoc::NormalModule[iI" Arguable:EFI"OptionParser::Arguable;T0o:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"AExtends command line arguments array (ARGV) to parse itself.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[I"extend_object;FI"lib/optparse.rb;T[I"new;T@[:protected[[: private[[I" instance;T[[; [ [I" getopts;F@[I" options;F@[I" options=;F@[I" order!;F@[I" parse!;F@[I" permute!;F@[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt])Arguable/order%21-i.rinu[U:RDoc::AnyMethod[iI" order!:EFI""OptionParser::Arguable#order!;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"LParses +self+ destructively in order and returns +self+ containing the ;TI""rest arguments left unparsed.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (&blk);T@FI" Arguable;FcRDoc::NormalModule00PKt]Arguable/options%3d-i.rinu[U:RDoc::AnyMethod[iI" options=:EFI"$OptionParser::Arguable#options=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"GSets OptionParser object, when +opt+ is +false+ or +nil+, methods ;TI"LOptionParser::Arguable#options and OptionParser::Arguable#options= are ;TI"Iundefined. Thus, there is no ways to access the OptionParser object ;TI"via the receiver object.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (opt);T@FI" Arguable;FcRDoc::NormalModule00PKt]m=MMArguable/extend_object-c.rinu[U:RDoc::AnyMethod[iI"extend_object:EFI"*OptionParser::Arguable::extend_object;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"#Initializes instance variable.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (obj);T@TI" Arguable;FcRDoc::NormalModule00PKt]RArguable/parse%21-i.rinu[U:RDoc::AnyMethod[iI" parse!:EFI""OptionParser::Arguable#parse!;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CParses +self+ destructively and returns +self+ containing the ;TI""rest arguments left unparsed.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Arguable;FcRDoc::NormalModule00PKt]i version-i.rinu[U:RDoc::Attr[iI" version:ETI"OptionParser#version;TI"W;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I" Version;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]5q%%def_head_option-i.rinu[U:RDoc::AnyMethod[iI"def_head_option:EFI"!OptionParser#def_head_option;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*opts, &block);T@ FI"OptionParser;TcRDoc::NormalClass0[@FI"define_head;FPKt]{SSsummary_width-i.rinu[U:RDoc::Attr[iI"summary_width:ETI"OptionParser#summary_width;TI"RW;T: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Width for option list portion of summary. Must be Numeric.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]P<''OptionMap/cdesc-OptionMap.rinu[U:RDoc::NormalClass[iI"OptionMap:ETI"OptionParser::OptionMap;TI" Hash;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I">Map from option/keyword string to object with completion.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[I"Completion;To;;[; @; 0I"lib/optparse.rb;T[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]~terminate-c.rinu[U:RDoc::AnyMethod[iI"terminate:EFI"OptionParser::terminate;TT: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(arg = nil);T@ FI"OptionParser;TcRDoc::NormalClass00PKt]jsummarize-i.rinu[U:RDoc::AnyMethod[iI"summarize:EFI"OptionParser#summarize;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IPuts option summary into +to+ and returns +to+. Yields each line if ;TI"a block is given.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +to+;T; [o; ; [I"COutput destination, which must have method <<. Defaults to [].;To;;[I" +width+;T; [o; ; [I"4Width of left side, defaults to @summary_width.;To;;[I" +max+;T; [o; ; [I"CMaximum length allowed for left side, defaults to +width+ - 1.;To;;[I" +indent+;T; [o; ; [I".Indentation, defaults to @summary_indent.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"W(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk);T@.FI"OptionParser;TcRDoc::NormalClass00PKt]<,AmbiguousArgument/cdesc-AmbiguousArgument.rinu[U:RDoc::NormalClass[iI"AmbiguousArgument:ETI"$OptionParser::AmbiguousArgument;TI""OptionParser::InvalidArgument;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"ERaises when the given argument word can't be completed uniquely.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt] AiDD reject-i.rinu[U:RDoc::AnyMethod[iI" reject:EFI"OptionParser#reject;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"0Directs to reject specified class argument.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I"+t+;T; [o; ; [I":Argument class specifier, any object including Class.;T@o:RDoc::Markup::Verbatim; [I"reject(t);T: @format0: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*args, &blk);T@FI"OptionParser;TcRDoc::NormalClass00PKt]HFceach_const-c.rinu[U:RDoc::AnyMethod[iI"each_const:ETI"OptionParser::each_const;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below000[I"(path, base = ::Object);T@ FI"OptionParser;TcRDoc::NormalClass00PKt]w..define_head-i.rinu[U:RDoc::AnyMethod[iI"define_head:EFI"OptionParser#define_head;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[[I"def_head_option;Fo;; [; @ ; 0I"(*opts, &block);T@ FI"OptionParser;TcRDoc::NormalClass00PKt]require_exact-i.rinu[U:RDoc::Attr[iI"require_exact:ETI"OptionParser#require_exact;TI"RW;T: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HWhether to require that options match exactly (disallows providing ;TI".abbreviated long option as short option).;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@I"OptionParser;TcRDoc::NormalClass0PKt]environment-i.rinu[U:RDoc::AnyMethod[iI"environment:EFI"OptionParser#environment;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NParses environment variable +env+ or its uppercase with splitting like a ;TI" shell.;To:RDoc::Markup::BlankLineo; ; [I"3+env+ defaults to the basename of the program.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"$(env = File.basename($0, '.*'));T@FI"OptionParser;TcRDoc::NormalClass00PKt] D00define_by_keywords-i.rinu[U:RDoc::AnyMethod[iI"define_by_keywords:ETI"$OptionParser#define_by_keywords;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Creates an option from the given parameters +params+. ;TI"idef_option-i.rinu[U:RDoc::AnyMethod[iI"def_option:EFI"OptionParser#def_option;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*opts, &block);T@ FI"OptionParser;TcRDoc::NormalClass0[@FI" define;FPKt]yl""cdesc-OptionParser.rinu[U:RDoc::NormalClass[iI"OptionParser:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[S:RDoc::Markup::Heading: leveli: textI"OptionParser;To:RDoc::Markup::BlankLineS; ; i; I"Introduction;T@o:RDoc::Markup::Paragraph;[I"POptionParser is a class for command-line option analysis. It is much more ;TI"Tadvanced, yet also easier to use, than GetoptLong, and is a more Ruby-oriented ;TI"solution.;T@S; ; i; I" Features;T@o:RDoc::Markup::List: @type: NUMBER: @items[ o:RDoc::Markup::ListItem: @label0;[o; ;[I"MThe argument specification and the code to handle it are written in the ;TI"same place.;To;;0;[o; ;[I"MIt can output an option summary; you don't need to maintain this string ;TI"separately.;To;;0;[o; ;[I"DOptional and mandatory arguments are specified very gracefully.;To;;0;[o; ;[I"CArguments can be automatically converted to a specified class.;To;;0;[o; ;[I"2Arguments can be restricted to a certain set.;T@o; ;[I"HAll of these features are demonstrated in the examples below. See ;TI")#make_switch for full documentation.;T@S; ; i; I"Minimal example;T@o:RDoc::Markup::Verbatim;[I"require 'optparse' ;TI" ;TI"options = {} ;TI" OptionParser.new do |opts| ;TI"3 opts.banner = "Usage: example.rb [options]" ;TI" ;TI"? opts.on("-v", "--[no-]verbose", "Run verbosely") do |v| ;TI" options[:verbose] = v ;TI" end ;TI"end.parse! ;TI" ;TI"p options ;TI" p ARGV ;T: @format0S; ; i; I"Complete example;T@o; ;[I"SThe following example is a complete Ruby program. You can run it and see the ;TI"Seffect of specifying various options. This is probably the best way to learn ;TI" the features of +optparse+.;T@o;;[tI"require 'optparse' ;TI"require 'optparse/time' ;TI"require 'ostruct' ;TI"require 'pp' ;TI" ;TI"class OptparseExample ;TI" ;TI"< CODES = %w[iso-2022-jp shift_jis euc-jp utf8 binary] ;TI"H CODE_ALIASES = { "jis" => "iso-2022-jp", "sjis" => "shift_jis" } ;TI" ;TI" # ;TI"4 # Return a structure describing the options. ;TI" # ;TI" def self.parse(args) ;TI"U # The options specified on the command line will be collected in *options*. ;TI"' # We set default values here. ;TI"" options = OpenStruct.new ;TI" options.library = [] ;TI"! options.inplace = false ;TI"# options.encoding = "utf8" ;TI"' options.transfer_type = :auto ;TI"! options.verbose = false ;TI" ;TI"1 opt_parser = OptionParser.new do |opts| ;TI"7 opts.banner = "Usage: example.rb [options]" ;TI" ;TI" opts.separator "" ;TI". opts.separator "Specific options:" ;TI" ;TI"! # Mandatory argument. ;TI". opts.on("-r", "--require LIBRARY", ;TI"P "Require the LIBRARY before executing your script") do |lib| ;TI"$ options.library << lib ;TI" end ;TI" ;TI"8 # Optional argument; multi-line description. ;TI"2 opts.on("-i", "--inplace [EXTENSION]", ;TI"/ "Edit ARGV files in place", ;TI"E " (make backup if EXTENSION supplied)") do |ext| ;TI"$ options.inplace = true ;TI"+ options.extension = ext || '' ;TI"\ options.extension.sub!(/\A\.?(?=.)/, ".") # Ensure extension begins with dot. ;TI" end ;TI" ;TI"/ # Cast 'delay' argument to a Float. ;TI"R opts.on("--delay N", Float, "Delay N seconds before executing") do |n| ;TI" options.delay = n ;TI" end ;TI" ;TI"4 # Cast 'time' argument to a Time object. ;TI"[ opts.on("-t", "--time [TIME]", Time, "Begin execution at given time") do |time| ;TI"! options.time = time ;TI" end ;TI" ;TI"$ # Cast to octal integer. ;TI"F opts.on("-F", "--irs [OCTAL]", OptionParser::OctalInteger, ;TI"E "Specify record separator (default \\0)") do |rs| ;TI"+ options.record_separator = rs ;TI" end ;TI" ;TI" # List of arguments. ;TI"S opts.on("--list x,y,z", Array, "Example 'list' of arguments") do |list| ;TI"! options.list = list ;TI" end ;TI" ;TI"W # Keyword completion. We are specifying a specific set of arguments (CODES ;TI"W # and CODE_ALIASES - notice the latter is a Hash), and the user may provide ;TI", # the shortest unambiguous text. ;TI"= code_list = (CODE_ALIASES.keys + CODES).join(',') ;TI"J opts.on("--code CODE", CODES, CODE_ALIASES, "Select encoding", ;TI"5 " (#{code_list})") do |encoding| ;TI") options.encoding = encoding ;TI" end ;TI" ;TI"8 # Optional argument with keyword completion. ;TI"= opts.on("--type [TYPE]", [:text, :binary, :auto], ;TI"G "Select transfer type (text, binary, auto)") do |t| ;TI"' options.transfer_type = t ;TI" end ;TI" ;TI" # Boolean switch. ;TI"C opts.on("-v", "--[no-]verbose", "Run verbosely") do |v| ;TI"! options.verbose = v ;TI" end ;TI" ;TI" opts.separator "" ;TI", opts.separator "Common options:" ;TI" ;TI"N # No argument, shows at tail. This will print an options summary. ;TI" # Try it and see! ;TI"@ opts.on_tail("-h", "--help", "Show this message") do ;TI" puts opts ;TI" exit ;TI" end ;TI" ;TI": # Another typical switch to print the version. ;TI"8 opts.on_tail("--version", "Show version") do ;TI"& puts ::Version.join('.') ;TI" exit ;TI" end ;TI" end ;TI" ;TI"! opt_parser.parse!(args) ;TI" options ;TI" end # parse() ;TI" ;TI""end # class OptparseExample ;TI" ;TI"+options = OptparseExample.parse(ARGV) ;TI"pp options ;TI" pp ARGV ;T;0S; ; i; I"Shell Completion;T@o; ;[I"AFor modern shells (e.g. bash, zsh, etc.), you can use shell ;TI")completion for command line options.;T@S; ; i; I"Further documentation;T@o; ;[I"QThe above examples should be enough to learn how to use this class. If you ;TI"Dhave any questions, file a ticket at http://bugs.ruby-lang.org.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I" banner;TI"W;T: publicFI"lib/optparse.rb;T[ I"default_argv;TI"RW;T;F@[ I"program_name;TI"W;T;F@[ I" release;TI"W;T;F@[ I"set_banner;F@;F@[ I"set_program_name;F@;F@[ I"set_summary_indent;FI"RW;T;F@[ I"set_summary_width;FI"RW;T;F@[ I"summary_indent;TI"RW;T;F@[ I"summary_width;TI"RW;T;F@[ I" version;TI"W;T;F@[U:RDoc::Constant[iI"DecimalInteger;FI"!OptionParser::DecimalInteger;T00o;;[o; ;[I"8Decimal integer format, to be converted to Integer.;T;@;0@@cRDoc::NormalClass0U;[iI"OctalInteger;FI"OptionParser::OctalInteger;T00o;;[o; ;[I"MRuby/C like octal/hexadecimal/binary integer format, to be converted to ;TI" Integer.;T;@;0@@@0U;[iI"DecimalNumeric;FI"!OptionParser::DecimalNumeric;T00o;;[o; ;[I"IDecimal integer/float number format, to be converted to Integer for ;TI",integer format, Float for float format.;T;@;0@@@0[[[I" class;T[[;[ [I" accept;F@[I" getopts;F@[I"inc;F@[I"new;T@[I" reject;F@[I"terminate;F@[I"top;F@[I" with;F@[:protected[[: private[[I" instance;T[[;[0[I" abort;F@[I" accept;F@[I" banner;F@[I" base;F@[I"candidate;F@[I"def_head_option;F@[I"def_option;F@[I"def_tail_option;F@[I" define;F@[I"define_head;F@[I"define_tail;F@[I"each_const;FI"lib/optparse/version.rb;T[I"environment;F@[I" getopts;F@[I" help;F@[I"inc;F@[I" load;F@[I"make_switch;F@[I"new;F@[I"on;F@[I" on_head;F@[I" on_tail;F@[I" order;F@[I" order!;F@[I" parse;F@[I" parse!;F@[I" permute;F@[I" permute!;F@[I"program_name;F@[I" reject;F@[I" release;F@[I" remove;F@[I"search_const;F@C[I"separator;F@[I"show_version;F@C[I"summarize;F@[I"terminate;F@[I" to_a;F@[I" to_s;F@[I"top;F@[I"ver;F@[I" version;F@[I" warn;F@[;[[;[ [I" complete;F@[I" notwice;F@[I" search;F@[I" visit;F@[[U:RDoc::Context::Section[i0o;;[;0;0[@I"lib/optparse/ac.rb;TI"lib/optparse/date.rb;TI"lib/optparse/time.rb;TI"lib/rdoc/options.rb;TI"lib/rdoc/ri/driver.rb;TI"*lib/rubygems/commands/cert_command.rb;TI"-lib/rubygems/commands/install_command.rb;TI",lib/rubygems/commands/server_command.rb;TI"+lib/rubygems/install_update_options.rb;TI")lib/rubygems/local_remote_options.rb;T@cRDoc::TopLevelPKt]+::Switch/switch_name-i.rinu[U:RDoc::AnyMethod[iI"switch_name:EFI"%OptionParser::Switch#switch_name;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Main name of the switch.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Switch;TcRDoc::NormalClass00PKt]c#Switch/cdesc-Switch.rinu[U:RDoc::NormalClass[iI" Switch:ETI"OptionParser::Switch;TI" Object;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"9Individual switch class. Not important to the user.;To:RDoc::Markup::BlankLineo; ;[I"KDefined within Switch are several Switch-derived classes: NoArgument, ;TI"RequiredArgument, etc.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[ [ I"arg;TI"R;T: publicFI"lib/optparse.rb;T[ I" block;T@; F@[ I" conv;T@; F@[ I" desc;T@; F@[ I" long;T@; F@[ I" pattern;T@; F@[ I" short;T@; F@[[[[I" class;T[[; [ [I" guess;F@[I"!incompatible_argument_styles;F@[I"new;T@[I" pattern;F@[:protected[[: private[[I" instance;T[[; [[I"summarize;F@[I"switch_name;F@[;[[;[[I" conv_arg;F@[I"parse_arg;F@[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]Jz^Switch/conv-i.rinu[U:RDoc::Attr[iI" conv:ETI"OptionParser::Switch#conv;TI"R;T: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@ I"OptionParser::Switch;TcRDoc::NormalClass0PKt]/FcUUSwitch/summarize-i.rinu[U:RDoc::AnyMethod[iI"summarize:EFI"#OptionParser::Switch#summarize;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KProduces the summary text. Each line of the summary is yielded to the ;TI"block (without newline).;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +sdone+;T; [o; ; [I"7Already summarized short style options keyed hash.;To;;[I" +ldone+;T; [o; ; [I"6Already summarized long style options keyed hash.;To;;[I" +width+;T; [o; ; [I"AWidth of left side (option part). In other words, the right ;TI":side (description part) starts after +width+ columns.;To;;[I" +max+;T; [o; ; [I"AMaximum width of left side -> the options are filled within ;TI"+max+ columns.;To;;[I" +indent+;T; [o; ; [I"0Prefix string indents all summarized lines.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I" indent;T[I"F(sdone = [], ldone = [], width = 1, max = width - 1, indent = "");T@7FI" Switch;TcRDoc::NormalClass00PKt] >Switch/block-i.rinu[U:RDoc::Attr[iI" block:ETI"OptionParser::Switch#block;TI"R;T: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@ I"OptionParser::Switch;TcRDoc::NormalClass0PKt]L1Switch/RequiredArgument/cdesc-RequiredArgument.rinu[U:RDoc::NormalClass[iI"RequiredArgument:ETI"+OptionParser::Switch::RequiredArgument;TI" self;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"#Switch that takes an argument.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[I" parse;FI"lib/optparse.rb;T[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser::Switch;TcRDoc::NormalClassPKt]jj"Switch/RequiredArgument/parse-i.rinu[U:RDoc::AnyMethod[iI" parse:EFI"1OptionParser::Switch::RequiredArgument#parse;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"4Raises an exception if argument is not present.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(arg, argv);T@FI"RequiredArgument;TcRDoc::NormalClass00PKt]11-Switch/PlacedArgument/cdesc-PlacedArgument.rinu[U:RDoc::NormalClass[iI"PlacedArgument:ETI")OptionParser::Switch::PlacedArgument;TI" self;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"BSwitch that takes an argument, which does not begin with '-'.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[I" parse;FI"lib/optparse.rb;T[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser::Switch;TcRDoc::NormalClassPKt]úyy Switch/PlacedArgument/parse-i.rinu[U:RDoc::AnyMethod[iI" parse:EFI"/OptionParser::Switch::PlacedArgument#parse;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Returns nil if argument is not present or begins with '-'.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(arg, argv, &error);T@FI"PlacedArgument;TcRDoc::NormalClass00PKt]_ձSwitch/short-i.rinu[U:RDoc::Attr[iI" short:ETI"OptionParser::Switch#short;TI"R;T: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0F@ I"OptionParser::Switch;TcRDoc::NormalClass0PKt]]$DD%Switch/NoArgument/cdesc-NoArgument.rinu[U:RDoc::NormalClass[iI"NoArgument:ETI"%OptionParser::Switch::NoArgument;TI" self;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"$Switch that takes no arguments.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[I"!incompatible_argument_styles;FI"lib/optparse.rb;T[I" pattern;F@[:protected[[: private[[I" instance;T[[; [[I" parse;F@[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser::Switch;TcRDoc::NormalClassPKt]oSwitch/NoArgument/pattern-c.rinu[U:RDoc::AnyMethod[iI" pattern:EFI".OptionParser::Switch::NoArgument::pattern;TT: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI"NoArgument;TcRDoc::NormalClass00PKt]G^003Switch/NoArgument/incompatible_argument_styles-c.rinu[U:RDoc::AnyMethod[iI"!incompatible_argument_styles:EFI"COptionParser::Switch::NoArgument::incompatible_argument_styles;TT: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*);T@ FI"NoArgument;TcRDoc::NormalClass00PKt][uuSwitch/NoArgument/parse-i.rinu[U:RDoc::AnyMethod[iI" parse:EFI"+OptionParser::Switch::NoArgument#parse;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"0Raises an exception if any arguments given.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I"NeedlessArgument, arg;T[I"(arg, argv);T@FI"NoArgument;TcRDoc::NormalClass00PKt]JJ&CompletingHash/cdesc-CompletingHash.rinu[U:RDoc::NormalClass[iI"CompletingHash:ETI"!OptionParser::CompletingHash;TI" Hash;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"GHash with completion search feature. See OptionParser::Completion.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[I"Completion;To;;[; @; 0I"lib/optparse.rb;T[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[I" match;F@[; [[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@I"OptionParser;TcRDoc::NormalClassPKt]=mAACompletingHash/match-i.rinu[U:RDoc::AnyMethod[iI" match:EFI"'OptionParser::CompletingHash#match;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Completion for hash key.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (key);T@FI"CompletingHash;TcRDoc::NormalClass00PKt]T⋢ parse-i.rinu[U:RDoc::AnyMethod[iI" parse:EFI"OptionParser#parse;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MParses command line arguments +argv+ in order when environment variable ;TI"?POSIXLY_CORRECT is set, and in permutation mode otherwise.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*argv);T@FI"OptionParser;TcRDoc::NormalClass00PKZ]wList/update-i.rinu[U:RDoc::AnyMethod[iI" update:EFI"OptionParser::List#update;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":Adds +sw+ according to +sopts+, +lopts+ and +nlopts+.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +sw+;T; [o; ; [I"/OptionParser::Switch instance to be added.;To;;[I" +sopts+;T; [o; ; [I"Short style option list.;To;;[I" +lopts+;T; [o; ; [I"Long style option list.;To;;[I" +nlopts+;T; [o; ; [I"%Negated long style options list.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"0(sw, sopts, lopts, nsw = nil, nlopts = nil);T@-FI" List;TcRDoc::NormalClass00PKZ]*V׸ notwice-i.rinu[U:RDoc::AnyMethod[iI" notwice:EFI"OptionParser#notwice;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MChecks if an argument is given twice, in which case an ArgumentError is ;TI"2raised. Called from OptionParser#switch only.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I" +obj+;T; [o; ; [I"New argument.;To;;[I" +prv+;T; [o; ; [I"#Previously specified argument.;To;;[I" +msg+;T; [o; ; [I"Exception message.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(obj, prv, msg);T@'FI"OptionParser;TcRDoc::NormalClass00PKZ]Py1mm search-i.rinu[U:RDoc::AnyMethod[iI" search:EFI"OptionParser#search;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MSearches +key+ in @stack for +id+ hash and returns or yields the result.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I"k;T[I"(id, key);T@FI"OptionParser;TcRDoc::NormalClass00PKZ]{!  show_version-i.rinu[U:RDoc::AnyMethod[iI"show_version:EFI"OptionParser#show_version;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*pkgs);T@ FI"OptionParser;TcRDoc::NormalClass00PKZ][؈jeach_const-i.rinu[U:RDoc::AnyMethod[iI"each_const:EFI"OptionParser#each_const;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below000[I"(path, base = ::Object);T@ FI"OptionParser;TcRDoc::NormalClass00PKZ]Uu((search_const-i.rinu[U:RDoc::AnyMethod[iI"search_const:EFI"OptionParser#search_const;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/optparse/version.rb;T:0@omit_headings_from_table_of_contents_below00I"klass, cname, const;T[I"(klass, name);T@ FI"OptionParser;TcRDoc::NormalClass00PKZ]؂xx visit-i.rinu[U:RDoc::AnyMethod[iI" visit:EFI"OptionParser#visit;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HTraverses @stack, sending each element method +id+ with +args+ and ;TI" +block+.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(id, *args, &block);T@FI"OptionParser;TcRDoc::NormalClass00PKZ]/8 complete-i.rinu[U:RDoc::AnyMethod[iI" complete:EFI"OptionParser#complete;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FCompletes shortened long style option switch and returns pair of ;TI"Acanonical switch and switch descriptor OptionParser::Switch.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" +id+;T; [o; ; [I"Searching table.;To;;[I" +opt+;T; [o; ; [I"Searching key.;To;;[I" +icase+;T; [o; ; [I"%Search case insensitive if true.;To;;[I" +pat+;T; [o; ; [I"%Optional pattern for completion.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"$(typ, opt, icase = false, *pat);T@.FI"OptionParser;TcRDoc::NormalClass00PKZ]n!Switch/conv_arg-i.rinu[U:RDoc::AnyMethod[iI" conv_arg:EFI""OptionParser::Switch#conv_arg;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HParses argument, converts and returns +arg+, +block+ and result of ;TI"Fconversion. Yields at semi-error condition instead of raising an ;TI"exception.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below000[I"(arg, val = []);T@FI" Switch;TcRDoc::NormalClass00PKZ]BSwitch/parse_arg-i.rinu[U:RDoc::AnyMethod[iI"parse_arg:EFI"#OptionParser::Switch#parse_arg;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GParses +arg+ and returns rest of +arg+ and matched portion to the ;TI"Gargument pattern. Yields when the pattern doesn't match substring.;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below00I"InvalidArgument, arg;T[I" (arg);T@FI" Switch;TcRDoc::NormalClass00PKt]2WE  show_version-c.rinu[PKt] SC(LInvalidArgument/cdesc-InvalidArgument.rinu[PKt]G-Q77 List/new-c.rinu[PKt]9%ޙ,List/append-i.rinu[PKt]* N^ List/search-i.rinu[PKt]dpBB List/accept-i.rinu[PKt]S::i List/list-i.rinu[PKt]IOO List/long-i.rinu[PKt]{%nList/prepend-i.rinu[PKt]XKList/summarize-i.rinu[PKt]W--pList/reject-i.rinu[PKt]VVList/atype-i.rinu[PKt]EaarList/each_option-i.rinu[PKt]ֶRRList/short-i.rinu[PKt],,List/complete-i.rinu[PKt]$6́List/get_candidates-i.rinu[PKt]B5wList/cdesc-List.rinu[PKt]Y-8ssr#on-i.rinu[PKt]N(%AmbiguousOption/cdesc-AmbiguousOption.rinu[PKt]ꄭdSS 'with-c.rinu[PKt]'T *release-i.rinu[PKt]@K- d+warn-i.rinu[PKt]Y[[,set_summary_width-i.rinu[PKt]-*)*3.NeedlessArgument/cdesc-NeedlessArgument.rinu[PKt]GVOO0additional_message-i.rinu[PKt]W 77A2default_argv-i.rinu[PKt] ^$3InvalidOption/cdesc-InvalidOption.rinu[PKt](5MissingArgument/cdesc-MissingArgument.rinu[PKt]V.. j8to_a-i.rinu[PKt]\>DD 9Acceptables/cdesc-Acceptables.rinu[PKt]/u e<order-i.rinu[PKt] r8,,>new-i.rinu[PKt][W4 4 ?make_switch-i.rinu[PKt]\\Jcandidate-i.rinu[PKt] iIɔKnew-c.rinu[PKt]..`Ndefine_tail-i.rinu[PKt]hNNOver-i.rinu[PKt]M,, TQremove-i.rinu[PKt]++ Rbanner-i.rinu[PKt]]++ !Tgetopts-c.rinu[PKt]␞&& Ubase-i.rinu[PKt]U**Vsearch_const-c.rinu[PKt]Hh^33RXset_banner-i.rinu[PKt]˭IYpermute%21-i.rinu[PKt]tc [permute-i.rinu[PKt]|N;;U]separator-i.rinu[PKt]i4def_option-i.rinu[PKt]yl""cdesc-OptionParser.rinu[PKt]+:: Switch/switch_name-i.rinu[PKt]c#8Switch/cdesc-Switch.rinu[PKt]Jz^CSwitch/conv-i.rinu[PKt]/FcUUsSwitch/summarize-i.rinu[PKt] > Switch/block-i.rinu[PKt]L1@Switch/RequiredArgument/cdesc-RequiredArgument.rinu[PKt]jj"Switch/RequiredArgument/parse-i.rinu[PKt]11-sSwitch/PlacedArgument/cdesc-PlacedArgument.rinu[PKt]úyy  Switch/PlacedArgument/parse-i.rinu[PKt]_ձ!Switch/short-i.rinu[PKt]]$DD%"Switch/NoArgument/cdesc-NoArgument.rinu[PKt]o%Switch/NoArgument/pattern-c.rinu[PKt]G^003&Switch/NoArgument/incompatible_argument_styles-c.rinu[PKt][uu|(Switch/NoArgument/parse-i.rinu[PKt]JJ&=*CompletingHash/cdesc-CompletingHash.rinu[PKt]=mAA,CompletingHash/match-i.rinu[PKt]T⋢ g.parse-i.rinu[PKZ]wC0List/update-i.rinu[PKZ]*V׸ u3notwice-i.rinu[PKZ]Py1mm i6search-i.rinu[PKZ]{!  8show_version-i.rinu[PKZ][؈j[9each_const-i.rinu[PKZ]Uu((:search_const-i.rinu[PKZ]؂xx <visit-i.rinu[PKZ]/8 =complete-i.rinu[PKZ]n!"ASwitch/conv_arg-i.rinu[PKZ]B,CSwitch/parse_arg-i.rinu[PKV28E