ruby-changes:70840
From: Nobuyoshi <ko1@a...>
Date: Wed, 12 Jan 2022 23:53:45 +0900 (JST)
Subject: [ruby-changes:70840] 92630e2346 (master): [ruby/optparse] Fix links to the page directory files [Bug #18468]
https://git.ruby-lang.org/ruby.git/commit/?id=92630e2346 From 92630e2346a221fdfeaa484632938a06765bc6e5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 12 Jan 2022 18:22:11 +0900 Subject: [ruby/optparse] Fix links to the page directory files [Bug #18468] https://github.com/ruby/optparse/commit/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(-) diff --git a/doc/optparse/creates_option.rdoc b/doc/optparse/creates_option.rdoc index 131c8779710..ad52c6671be 100644 --- a/doc/optparse/creates_option.rdoc +++ b/doc/optparse/creates_option.rdoc @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/doc/optparse/creates_option.rdoc#L1 Creates an option from the given parameters +params+. -See {Parameters for New Options}[./doc/optparse/option_params_rdoc.html]. +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.html#label-Option+Handlers]. +See {Option Handlers}[./option_params.rdoc#label-Option+Handlers]. diff --git a/doc/optparse/option_params.rdoc b/doc/optparse/option_params.rdoc index 3e6cb1be410..b2e4e1a33ce 100644 --- a/doc/optparse/option_params.rdoc +++ b/doc/optparse/option_params.rdoc @@ -410,7 +410,7 @@ from the default \String to an instance of another class. https://github.com/ruby/ruby/blob/trunk/doc/optparse/option_params.rdoc#L410 There are a number of built-in converters. You can also define custom converters. -See {Argument Converters}[./argument_converters_rdoc.html]. +See {Argument Converters}[./argument_converters.rdoc]. === Descriptions diff --git a/doc/optparse/tutorial.rdoc b/doc/optparse/tutorial.rdoc index 1d7c52b19e5..19c86b93d88 100644 --- a/doc/optparse/tutorial.rdoc +++ b/doc/optparse/tutorial.rdoc @@ -541,7 +541,7 @@ Executions: https://github.com/ruby/ruby/blob/trunk/doc/optparse/tutorial.rdoc#L541 [#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>, Date] You can also define custom converters. -See {Argument Converters}[./argument_converters_rdoc.html] +See {Argument Converters}[./argument_converters.rdoc] for both built-in and custom converters. === Help @@ -657,7 +657,7 @@ Though you may never need to call it directly, https://github.com/ruby/ruby/blob/trunk/doc/optparse/tutorial.rdoc#L657 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.html]. + See {Parameters for New Options}[./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>. diff --git a/lib/optparse.rb b/lib/optparse.rb index 61dd87f5589..a61eff30c4f 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -50,7 +50,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L50 # # === New to \OptionParser? # -# See the {Tutorial}[./doc/optparse/tutorial_rdoc.html]. +# See the {Tutorial}[optparse/tutorial.rdoc]. # # === Introduction # @@ -420,7 +420,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L420 # === Further documentation # # The above examples, along with the accompanying -# {Tutorial}[./doc/optparse/tutorial_rdoc.html], +# {Tutorial}[optparse/tutorial.rdoc], # should be enough to learn how to use this class. # If you have any questions, file a ticket at http://bugs.ruby-lang.org. # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/