summaryrefslogtreecommitdiff
path: root/lib/getopts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getopts.rb')
-rw-r--r--lib/getopts.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/getopts.rb b/lib/getopts.rb
index 34fb0d6442..f63bbfef6f 100644
--- a/lib/getopts.rb
+++ b/lib/getopts.rb
@@ -15,6 +15,8 @@
# rewritten by Akinori MUSHA <knu@ruby-lang.org>
#
+warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0]
+
$RCS_ID=%q$Header$