summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-04 12:10:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-04 12:10:13 +0000
commitd3677c3d05c2a216c547e65d02b42a0a476209f2 (patch)
tree26ce196748a5b656012dfd86644740b3b9db5f88
parentc415a5d66b0bbea62c378088af7df2afffa14c88 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--lib/getoptlong.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1193f82c74..46bf255b00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index 3ebbf3b1b6..4cfb5fbd27 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -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