Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/OptionParser/make_switch-i.ri
Arrière
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::BlankLine o; ; [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::NormalClass00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages