summaryrefslogtreecommitdiff
path: root/lib/optparse.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-19 08:48:03 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-19 08:48:03 +0000
commit2dd91facca2337ff611489f1ccd84441d8fc9bf2 (patch)
treeecced3981a36049964ca5a1fca011b012e1e9bc6 /lib/optparse.rb
parentb338d1d6a41d59885f718de2f800a19b84d42fa7 (diff)
* lib/optparse.rb: fix to override conv proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r--lib/optparse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index fd0ca70d5a..1808487337 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1089,7 +1089,7 @@ class OptionParser
when CompletingHash
when nil
pattern = CompletingHash.new
- conv ||= pattern.method(:convert).to_proc if pattern.respond_to?(:convert)
+ conv = pattern.method(:convert).to_proc if pattern.respond_to?(:convert)
else
raise ArgumentError, "argument pattern given twice"
end