From b215f6d24bd1e2958790bff6d6c83668c20fb28d Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 24 May 2005 03:01:17 +0000 Subject: * lib/getopts.rb: should warn only if verbose mode. fixed: [ruby-dev:26201] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/getopts.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 011844ecd..9ade0b299 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 24 11:56:25 2005 WATANABE Hirofumi + + * lib/getopts.rb: should warn only if verbose mode. + fixed: [ruby-dev:26201] + Tue May 24 06:45:31 2005 Nobuyoshi Nakada * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): string diff --git a/lib/getopts.rb b/lib/getopts.rb index f63bbfef6..ddb0639db 100644 --- a/lib/getopts.rb +++ b/lib/getopts.rb @@ -15,7 +15,7 @@ # rewritten by Akinori MUSHA # -warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0] +warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0] and $VERBOSE $RCS_ID=%q$Header$ -- cgit