[Bug #19685]: Add -y
and --yydebug
document to --help
Add -y option information to `--help` Fix a warning on the man page
This commit is contained in:
parent
3a4302c742
commit
3fe0f8c68b
Notes:
git
2023-06-05 03:06:27 +00:00
Merged: https://github.com/ruby/ruby/pull/7870 Merged-By: nobu <nobu@ruby-lang.org>
@ -388,7 +388,7 @@ before executing script.
|
|||||||
.Pp
|
.Pp
|
||||||
.It Fl y
|
.It Fl y
|
||||||
.It Fl -yydebug
|
.It Fl -yydebug
|
||||||
DO NOT USE.
|
This option is not guaranteed to be compatible.
|
||||||
.Pp
|
.Pp
|
||||||
Turns on compiler debug mode. Ruby will print a bunch of internal
|
Turns on compiler debug mode. Ruby will print a bunch of internal
|
||||||
state messages during compilation. Only specify this switch you are going to
|
state messages during compilation. Only specify this switch you are going to
|
||||||
|
1
ruby.c
1
ruby.c
@ -306,6 +306,7 @@ usage(const char *name, int help, int highlight, int columns)
|
|||||||
M("--backtrace-limit=num", "", "limit the maximum length of backtrace"),
|
M("--backtrace-limit=num", "", "limit the maximum length of backtrace"),
|
||||||
M("--verbose", "", "turn on verbose mode and disable script from stdin"),
|
M("--verbose", "", "turn on verbose mode and disable script from stdin"),
|
||||||
M("--version", "", "print the version number, then exit"),
|
M("--version", "", "print the version number, then exit"),
|
||||||
|
M("-y", ", --yydebug", "print log of parser. Backward compatibility is not guaranteed"),
|
||||||
M("--help", "", "show this message, -h for short message"),
|
M("--help", "", "show this message, -h for short message"),
|
||||||
};
|
};
|
||||||
static const struct ruby_opt_message dumps[] = {
|
static const struct ruby_opt_message dumps[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user