Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/optparse/creates_option.rdoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Creates an option from the given parameters +params+.
See {Parameters for New Options}[./option_params.rdoc].
See {Parameters for New Options}[optparse/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].
See {Option Handlers}[optparse/option_params.rdoc#label-Option+Handlers].
2 changes: 1 addition & 1 deletion doc/optparse/tutorial.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ Though you may never need to call it directly,
here's the core method for defining an option:

- \Method \OptionParser#make_switch accepts an array of parameters and a block.
See {Parameters for New Options}[./option_params.rdoc].
See {Parameters for New Options}[optparse/option_params.rdoc].
This method is unlike others here in that it:
- Accepts an <em>array of parameters</em>;
others accept a <em>sequence of parameter arguments</em>.
Expand Down