2021-04-07 16:58:46 +00:00
|
|
|
Creates an option from the given parameters +params+.
|
2021-04-22 19:22:11 +00:00
|
|
|
See {Parameters for New Options}[./doc/optparse/option_params_rdoc.html].
|
2021-04-07 16:58:46 +00: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.
|
2021-04-10 23:49:30 +00:00
|
|
|
See {Option Handlers}[./option_params_rdoc.html#label-Option+Handlers].
|