mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7 lines
376 B
Text
7 lines
376 B
Text
Creates an option from the given parameters +params+.
|
|
See {Parameters for New Options}[./option_params_rdoc.html].
|
|
|
|
The block, if given, is the handler for the created option.
|
|
When the option is encountered during command-line parsing,
|
|
the block is called with the argument given for the option, if any.
|
|
See {Option Handlers}[./option_params_rdoc.html#label-Option+Handlers].
|