summaryrefslogtreecommitdiff
path: root/lib/optparse.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-08 11:00:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-08 11:00:17 +0000
commit22bb1debf99c168cd2248bb62f76bf6137bf1ce8 (patch)
treef04fd540e1e682d78b3a7b11522dcc6fde53b731 /lib/optparse.rb
parent78ff3833fb67c8005a9b851037e74b3eea940aa3 (diff)
downloadruby-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.rb4
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