summaryrefslogtreecommitdiffstats
path: root/lib/optparse/time.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-21 04:27:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-21 04:27:06 +0000
commit2aac482b98ba8bf60fda892a802fd34ce85cc56e (patch)
tree72d6bfaf40ae3ad0043c88122796d134720aba54 /lib/optparse/time.rb
parent638c7a452fd9f6889bcd2cffff525f0bb6dffb46 (diff)
downloadruby-2aac482b98ba8bf60fda892a802fd34ce85cc56e.tar.gz
ruby-2aac482b98ba8bf60fda892a802fd34ce85cc56e.tar.xz
ruby-2aac482b98ba8bf60fda892a802fd34ce85cc56e.zip
* lib/optparse.rb: get rid of warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse/time.rb')
-rw-r--r--lib/optparse/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/time.rb b/lib/optparse/time.rb
index 9f677a8d3..402cadcf1 100644
--- a/lib/optparse/time.rb
+++ b/lib/optparse/time.rb
@@ -1,7 +1,7 @@
require 'optparse'
require 'time'
-OptionParser.accept(Time) do |s|
+OptionParser.accept(Time) do |s,|
begin
(Time.httpdate(s) rescue Time.parse(s)) if s
rescue