1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/doc/optparse/creates_option.rdoc

7 lines
366 B
Text

Creates an option from the given parameters +params+.
See {Parameters for New Options}[./option_params.rdoc].
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#label-Option+Handlers].