⚝
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
/
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:publico: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