lib/rake-commander/option.rb in rake-commander-0.2.2 vs lib/rake-commander/option.rb in rake-commander-0.2.3
- old
+ new
@@ -146,10 +146,10 @@
private
# Called on parse runtime
def option_block(&middleware)
- block_extra_args = [default, short, name]
+ block_extra_args = [default, short, name, self]
proc do |value|
args = block_extra_args.dup.unshift(value)
original_block&.call(*args)
middleware&.call(*args)
end