lib/thor/base.rb in thor-0.13.7 vs lib/thor/base.rb in thor-0.13.8
- old
+ new
@@ -334,10 +334,11 @@
# end
#
def no_tasks
@no_tasks = true
yield
+ ensure
@no_tasks = false
end
# Sets the namespace for the Thor or Thor::Group class. By default the
# namespace is retrieved from the class name. If your Thor class is named
@@ -447,10 +448,10 @@
# name<Symbol>:: The name of the argument.
# options<Hash>:: Described in both class_option and method_option.
def build_option(name, options, scope) #:nodoc:
scope[name] = Thor::Option.new(name, options[:desc], options[:required],
options[:type], options[:default], options[:banner],
- options[:group], options[:aliases])
+ options[:lazy_default], options[:group], options[:aliases])
end
# Receives a hash of options, parse them and add to the scope. This is a
# fast way to set a bunch of options:
#