diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-08 11:00:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-08 11:00:17 +0000 |
commit | 22bb1debf99c168cd2248bb62f76bf6137bf1ce8 (patch) | |
tree | f04fd540e1e682d78b3a7b11522dcc6fde53b731 /lib/optparse.rb | |
parent | 78ff3833fb67c8005a9b851037e74b3eea940aa3 (diff) | |
download | ruby-22bb1debf99c168cd2248bb62f76bf6137bf1ce8.tar.gz |
* lib/optparse.rb, lib/optparse/version.rb: search also all
capital versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index d17bf75404..38958c3f8d 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -786,11 +786,11 @@ Default options, which never appear in option summary. attr_writer :version, :release def version - @version || (defined?(::Version) && ::Version) + @version || (defined?(::Version) && ::Version) || (defined?(::VERSION) && ::VERSION) end def release - @release || (defined?(::Release) && ::Release) + @release || (defined?(::Release) && ::Release) || (defined?(::RELEASE) && ::RELEASE) end def ver |