From 0f45d0c4847aded77c3aa42ae8b4da8299fa0a12 Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Wed, 6 Nov 2024 10:47:15 +0900 Subject: [PATCH] Update man and help: -d option set $VERBOSE to true --- man/ruby.1 | 2 ++ ruby.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/man/ruby.1 b/man/ruby.1 index 28d7ddadfa..d19cea99ca 100644 --- a/man/ruby.1 +++ b/man/ruby.1 @@ -287,6 +287,8 @@ to the standard output. .It Fl -debug Turns on debug mode. .Li "$DEBUG" +and +.Li "$VERBOSE" will be set to true. .Pp .It Fl e Ar command diff --git a/ruby.c b/ruby.c index f1089ca41e..11376cbe70 100644 --- a/ruby.c +++ b/ruby.c @@ -326,7 +326,7 @@ usage(const char *name, int help, int highlight, int columns) M("-a", "", "Split each input line ($_) into fields ($F)."), M("-c", "", "Check syntax (no execution)."), M("-Cdirpath", "", "Execute program in specified directory."), - M("-d", ", --debug", "Set debugging flag ($DEBUG) to true."), + M("-d", ", --debug", "Set debugging flag ($DEBUG) and $VERBOSE to true."), M("-e 'code'", "", "Execute given Ruby code; multiple -e allowed."), M("-Eex[:in]", ", --encoding=ex[:in]", "Set default external and internal encodings."), M("-Fpattern", "", "Set input field separator ($;); used with -a."),