summaryrefslogtreecommitdiff
path: root/doc/creates_option.rdoc
blob: af1ac16f2b7985710ccb9bac3455cddedca9fd53 (plain)
1
2
3
4
5
6
7
Creates an option from the given parameters +params+.
See {Parameters for New Options}[doc/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}[doc/option_params_rdoc.html#label-Option+Handlers].