diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-07 00:20:16 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-07 00:20:16 +0000 |
commit | cde930a4a4005da1d8e1a1ced719433fd07e3d3f (patch) | |
tree | e196d0de10c091187b6d93225d2d9b0cd51ae0dc /lib/getopts.rb | |
parent | 1c536c2a98fabbe6e5af65eea61617e2df06091c (diff) |
* string.c (rb_str_cmp_m): should not return false but nil.
fixed: [ruby-dev:25811]
* lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499]
getopts.rb, parsearg.rb, importenv.rb as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/getopts.rb')
-rw-r--r-- | lib/getopts.rb | 2 |
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$ |