diff options
author | Peter Zhu <[email protected]> | 2022-04-14 11:15:57 -0400 |
---|---|---|
committer | git <[email protected]> | 2022-04-15 14:21:28 +0900 |
commit | da1695b9260e1c87a66371b4f7f89cdfedb05d44 (patch) | |
tree | 721069e4b0be267ae58c33d91630887d58133b1a | |
parent | 92614111c0b175deaaba95ff3240a42e9b972b03 (diff) |
[ruby/optparse] Fix broken links in docs
https://github.com/ruby/optparse/commit/2bea3b38c3
-rw-r--r-- | doc/optparse/creates_option.rdoc | 4 | ||||
-rw-r--r-- | doc/optparse/tutorial.rdoc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/optparse/creates_option.rdoc b/doc/optparse/creates_option.rdoc index ad52c6671b..ab672d5124 100644 --- a/doc/optparse/creates_option.rdoc +++ b/doc/optparse/creates_option.rdoc @@ -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]. diff --git a/doc/optparse/tutorial.rdoc b/doc/optparse/tutorial.rdoc index 19c86b93d8..b95089826d 100644 --- a/doc/optparse/tutorial.rdoc +++ b/doc/optparse/tutorial.rdoc @@ -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>. |