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

ruby-changes:27312

From: drbrain <ko1@a...>
Date: Fri, 22 Feb 2013 06:27:59 +0900 (JST)
Subject: [ruby-changes:27312] drbrain:r39364 (trunk): * doc/globals.rdoc: Document what setting $VERBOSE does. [Bug #7899]

drbrain	2013-02-22 06:27:25 +0900 (Fri, 22 Feb 2013)

  New Revision: 39364

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39364

  Log:
    * doc/globals.rdoc:  Document what setting $VERBOSE does.  [Bug #7899]
    
    * doc/globals.rdoc:  Added pointer to $-w and $-v for full
      documentation.

  Modified files:
    trunk/ChangeLog
    trunk/doc/globals.rdoc

Index: doc/globals.rdoc
===================================================================
--- doc/globals.rdoc	(revision 39363)
+++ doc/globals.rdoc	(revision 39364)
@@ -31,7 +31,10 @@ $LOAD_PATH:: The alias to the $:. https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L31
 $stderr::    The current standard error output.
 $stdin::     The current standard input.
 $stdout::    The current standard output.
-$VERBOSE::   The verbose flag, which is set by the -v switch.
+$VERBOSE::   The verbose flag, which is set by the -w or -v switch.  Setting
+             this to a true value enables warnings as if -w or -v were given
+             on the command line.  Setting this to nil disables warnings,
+             including from Kernel#warn.
 $-0::  The alias to $/.
 $-a::  True if option -a is set. Read-only variable.
 $-d::  The alias to $DEBUG.
@@ -40,8 +43,8 @@ $-i::  In in-place-edit mode, this varia https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L43
 $-I::  The alias to $:.
 $-l::  True if option -l is set. Read-only variable.
 $-p::  True if option -p is set. Read-only variable.
-$-v::  The alias to $VERBOSE.
-$-w::  True if option -w is set.
+$-v::  An alias of $VERBOSE.  See $VERBOSE above for further discussion.
+$-w::  An alias of $VERBOSE.  See $VERBOSE above for further discussion.
 
 == Pre-defined global constants
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39363)
+++ ChangeLog	(revision 39364)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb 22 06:27:07 2013  Eric Hodel  <drbrain@s...>
+
+	* doc/globals.rdoc:  Document what setting $VERBOSE does.  [Bug #7899]
+
+	* doc/globals.rdoc:  Added pointer to $-w and $-v for full
+	  documentation.
+
 Fri Feb 22 02:33:00 2013  Zachary Scott  <zachary@z...>
 
 	* lib/abbrev.rb: Add words parameter to Abbrev::abbrev

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

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