diff options
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 2 |
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 |