⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
OptionParser
/
Edit File: make_switch-i.ri
U:RDoc::AnyMethod[iI"make_switch:ETI"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"KIf you give multiple description strings, each string will be printed ;TI"line by line.;T@o;;[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
Simpan