2021-04-07 11:58:46 -05:00
|
|
|
Creates an option from the given parameters +params+.
|
2022-04-14 11:15:57 -04:00
|
|
|
See {Parameters for New Options}[optparse/option_params.rdoc].
|
2021-04-07 11:58:46 -05:00
|
|
|
|
|
|
|
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.
|
2022-04-14 11:15:57 -04:00
|
|
|
See {Option Handlers}[optparse/option_params.rdoc#label-Option+Handlers].
|