Fix failure to pass on class options to subcommands
This commit is contained in:
@@ -27,7 +27,7 @@ module Mrsk::Cli
|
||||
def initialize(*)
|
||||
super
|
||||
load_envs
|
||||
initialize_commander(options)
|
||||
initialize_commander(options_with_subcommand_class_options)
|
||||
end
|
||||
|
||||
private
|
||||
@@ -39,6 +39,10 @@ module Mrsk::Cli
|
||||
end
|
||||
end
|
||||
|
||||
def options_with_subcommand_class_options
|
||||
options.merge(@_initializer.last[:class_options] || {})
|
||||
end
|
||||
|
||||
def initialize_commander(options)
|
||||
MRSK.tap do |commander|
|
||||
if options[:verbose]
|
||||
|
||||
Reference in New Issue
Block a user