⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Bundler
/
Thor
/
View File Name :
stop_on_unknown_option%21-c.ri
U:RDoc::AnyMethod[iI"stop_on_unknown_option!:ETI"+Bundler::Thor::stop_on_unknown_option!;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"GStop parsing of options as soon as an unknown option or a regular ;TI"Rargument is encountered. All remaining arguments are passed to the command. ;TI"PThis is useful if you have a command that can receive arbitrary additional ;TI"Joptions, and where those additional options should not be handled by ;TI"Bundler::Thor.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli : textI"Example;T@o; ; [ I"RTo better understand how this is useful, let's consider a command that calls ;TI"Ian external command. A user may want to pass arbitrary options and ;TI"Oarguments to that command. The command itself also accepts some options, ;TI".which should be handled by Bundler::Thor.;T@o:RDoc::Markup::Verbatim; [I"0class_option "verbose", :type => :boolean ;TI"#stop_on_unknown_option! :exec ;TI".check_unknown_options! :except => :exec ;TI" ;TI"(desc "exec", "Run a shell command" ;TI"def exec(*args) ;TI"5 puts "diagnostic output" if options[:verbose] ;TI" Kernel.exec(*args) ;TI" end ;T:@format0o; ; [I"JHere +exec+ can be called with +--verbose+ to get diagnostic output, ;TI" e.g.:;T@o;; [I"$$ thor exec --verbose echo foo ;TI"diagnostic output ;TI" foo ;T;0o; ; [I"NBut if +--verbose+ is given after +echo+, it is passed to +echo+ instead:;T@o;; [I"$$ thor exec echo --verbose foo ;TI"--verbose foo ;T;0S;; i ;I"Parameters;To:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"Symbol ...;T; [o; ; [I"0A list of commands that should be affected.;T: @fileI"(lib/bundler/vendor/thor/lib/thor.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*command_names);T@AFI" Thor;TcRDoc::NormalClass00