mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
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(-)
This commit is contained in:
parent
28ec24db4a
commit
abdd655afd
5 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
Creates an option from the given parameters +params+.
|
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.
|
The block, if given, is the handler for the created option.
|
||||||
When the option is encountered during command-line parsing,
|
When the option is encountered during command-line parsing,
|
||||||
the block is called with the argument given for the option, if any.
|
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].
|
||||||
|
|
|
@ -410,7 +410,7 @@ from the default \String to an instance of another class.
|
||||||
There are a number of built-in converters.
|
There are a number of built-in converters.
|
||||||
You can also define custom converters.
|
You can also define custom converters.
|
||||||
|
|
||||||
See {Argument Converters}[./argument_converters_rdoc.html].
|
See {Argument Converters}[./argument_converters.rdoc].
|
||||||
|
|
||||||
=== Descriptions
|
=== Descriptions
|
||||||
|
|
||||||
|
|
|
@ -541,7 +541,7 @@ Executions:
|
||||||
[#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>, Date]
|
[#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>, Date]
|
||||||
|
|
||||||
You can also define custom converters.
|
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.
|
for both built-in and custom converters.
|
||||||
|
|
||||||
=== Help
|
=== Help
|
||||||
|
@ -657,7 +657,7 @@ Though you may never need to call it directly,
|
||||||
here's the core method for defining an option:
|
here's the core method for defining an option:
|
||||||
|
|
||||||
- \Method \OptionParser#make_switch accepts an array of parameters and a block.
|
- \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:
|
This method is unlike others here in that it:
|
||||||
- Accepts an <em>array of parameters</em>;
|
- Accepts an <em>array of parameters</em>;
|
||||||
others accept a <em>sequence of parameter arguments</em>.
|
others accept a <em>sequence of parameter arguments</em>.
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#
|
#
|
||||||
# === New to \OptionParser?
|
# === New to \OptionParser?
|
||||||
#
|
#
|
||||||
# See the {Tutorial}[./doc/optparse/tutorial_rdoc.html].
|
# See the {Tutorial}[optparse/tutorial.rdoc].
|
||||||
#
|
#
|
||||||
# === Introduction
|
# === Introduction
|
||||||
#
|
#
|
||||||
|
@ -420,7 +420,7 @@
|
||||||
# === Further documentation
|
# === Further documentation
|
||||||
#
|
#
|
||||||
# The above examples, along with the accompanying
|
# 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.
|
# should be enough to learn how to use this class.
|
||||||
# If you have any questions, file a ticket at http://bugs.ruby-lang.org.
|
# If you have any questions, file a ticket at http://bugs.ruby-lang.org.
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||||
#define RUBY_PATCHLEVEL 6
|
#define RUBY_PATCHLEVEL 7
|
||||||
|
|
||||||
#define RUBY_RELEASE_YEAR 2022
|
#define RUBY_RELEASE_YEAR 2022
|
||||||
#define RUBY_RELEASE_MONTH 1
|
#define RUBY_RELEASE_MONTH 1
|
||||||
#define RUBY_RELEASE_DAY 30
|
#define RUBY_RELEASE_DAY 31
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue