ruby/doc/optparse/creates_option.rdoc
NARUSE, Yui abdd655afd merge revision(s) 92630e2346: [Backport #18468]
[ruby/optparse] Fix links to the page directory files [Bug #18468]

	dab72c543d
	---
	 doc/optparse/creates_option.rdoc | 4 ++--
	 doc/optparse/option_params.rdoc  | 2 +-
	 doc/optparse/tutorial.rdoc       | 4 ++--
	 lib/optparse.rb                  | 4 ++--
	 4 files changed, 7 insertions(+), 7 deletions(-)
2022-01-31 11:15:50 +09:00

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].