Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue where default method options weren't picked up for tasks …
…that didn't use method_options explicitly
  • Loading branch information
fabien committed Oct 12, 2008
1 parent d290c8e commit f0a7458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/thor/runner.rb
Expand Up @@ -92,7 +92,7 @@ def update(name)

puts "Updating `#{name}' from #{yaml[name][:location]}"
old_filename = yaml[name][:filename]
options["as"] = name
self.options = self.options.merge("as" => name)
filename = install(yaml[name][:location])
unless filename == old_filename
File.delete(File.join(thor_root, old_filename))
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/task.rb
Expand Up @@ -63,7 +63,7 @@ def full_opts
end

def options?
@options && !@options.empty?
@options.kind_of?(Hash)
end

def formatted_usage(namespace = false)
Expand Down

0 comments on commit f0a7458

Please sign in to comment.