aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor/thor/invocation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/vendor/thor/invocation.rb')
-rw-r--r--lib/bundler/vendor/thor/invocation.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/vendor/thor/invocation.rb b/lib/bundler/vendor/thor/invocation.rb
index 6315dd42..71db7c81 100644
--- a/lib/bundler/vendor/thor/invocation.rb
+++ b/lib/bundler/vendor/thor/invocation.rb
@@ -85,7 +85,7 @@ class Thor
# that it's going to use.
#
# If you want Rspec::RR to be initialized with its own set of options, you
- # have to do that explicitely:
+ # have to do that explicitly:
#
# invoke "rspec:rr", [], :style => :foo
#
@@ -106,7 +106,9 @@ class Thor
raise "Expected Thor class, got #{klass}" unless klass <= Thor::Base
args, opts, config = _parse_initialization_options(args, opts, config)
- klass.send(:dispatch, task, args, opts, config)
+ klass.send(:dispatch, task, args, opts, config) do |instance|
+ instance.parent_options = options
+ end
end
# Invoke the given task if the given args.