Skip to content

Commit

Permalink
[Bug #19685]: Add -y and --yydebug document to --help
Browse files Browse the repository at this point in the history
Add -y option information to `--help`
Fix a warning on the man page
  • Loading branch information
Little-Rubyist committed Jun 5, 2023
1 parent 3a4302c commit 3fe0f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion man/ruby.1
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ before executing script.
.Pp
.It Fl y
.It Fl -yydebug
DO NOT USE.
This option is not guaranteed to be compatible.
.Pp
Turns on compiler debug mode. Ruby will print a bunch of internal
state messages during compilation. Only specify this switch you are going to
Expand Down
1 change: 1 addition & 0 deletions ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -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("--verbose", "", "turn on verbose mode and disable script from stdin"),
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"),
};
static const struct ruby_opt_message dumps[] = {
Expand Down

0 comments on commit 3fe0f8c

Please sign in to comment.