[前][次][番号順一覧][スレッド一覧]

ruby-changes:50747

From: nobu <ko1@a...>
Date: Tue, 27 Mar 2018 01:25:11 +0900 (JST)
Subject: [ruby-changes:50747] nobu:r62927 (trunk): ruby.c: fix --verbose description in usage

nobu	2018-03-27 01:25:05 +0900 (Tue, 27 Mar 2018)

  New Revision: 62927

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62927

  Log:
    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]

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 62926)
+++ ruby.c	(revision 62927)
@@ -238,7 +238,7 @@ usage(const char *name, int help) https://github.com/ruby/ruby/blob/trunk/ruby.c#L238
 	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) https://github.com/ruby/ruby/blob/trunk/ruby.c#L254
 	  "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"),
     };

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]