aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-26 16:25:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-26 16:25:05 +0000
commit2a99d5f9ef08c4f21170ce73623ab11d0a5b811f (patch)
tree4270eff5c2f994dbe9371a29df64a22182745965 /ruby.c
parentec74ad7cba41bc02604d661dcd7b5dee00ce3ca7 (diff)
downloadruby-2a99d5f9ef08c4f21170ce73623ab11d0a5b811f.tar.gz
ruby.c: fix --verbose description in usage
* ruby.c (usage): fix the description of `--verbose` option, which does not print the version number unlike `-v` option. [ruby-core:86307] [Bug #14633] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 79a9dc6767..9f16bd3ea8 100644
--- a/ruby.c
+++ b/ruby.c
@@ -238,7 +238,7 @@ usage(const char *name, int help)
M("-s", "", "enable some switch parsing for switches after script name"),
M("-S", "", "look for the script using PATH environment variable"),
M("-T[level=1]", "", "turn on tainting checks"),
- M("-v", ", --verbose", "print version number, then turn on verbose mode"),
+ M("-v", "", "print the version number, then turn on verbose mode"),
M("-w", "", "turn warnings on for your script"),
M("-W[level=2]", "", "set warning level; 0=silence, 1=medium, 2=verbose"),
M("-x[directory]", "", "strip off text before #!ruby line and perhaps cd to directory"),
@@ -254,6 +254,7 @@ usage(const char *name, int help)
"enable or disable features. see below for available features"),
M("--external-encoding=encoding", ", --internal-encoding=encoding",
"specify the default external or internal character encoding"),
+ M("--verbose", "", "turn on verbose mode and disable script from stdin"),
M("--version", "", "print the version"),
M("--help", "", "show this message, -h for short message"),
};