1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/getoptlong.rb: use $stderr instead of $deferr.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-05-04 12:10:13 +00:00
parent c415a5d66b
commit d3677c3d05
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun May 4 21:09:32 2008 Tanaka Akira <akr@fsij.org>
* lib/getoptlong.rb: use $stderr instead of $deferr.
Sun May 4 16:04:28 2008 Tanaka Akira <akr@fsij.org>
* time.c (obj2nsec): fix string argument.

View file

@ -151,7 +151,7 @@ class GetoptLong
@argument_flags = Hash.new
#
# Whether error messages are output to $deferr.
# Whether error messages are output to $stderr.
#
@quiet = FALSE
@ -380,7 +380,7 @@ class GetoptLong
# Set an error (a protected method).
#
def set_error(type, message)
$deferr.print("#{$0}: #{message}\n") if !@quiet
$stderr.print("#{$0}: #{message}\n") if !@quiet
@error = type
@error_message = message