lib/troy/cli.rb in troy-0.0.15 vs lib/troy/cli.rb in troy-0.0.16
- old
+ new
@@ -5,10 +5,10 @@
def self.exit_on_failure?
true
end
def initialize(args = [], options = {}, config = {})
- if config[:current_task].name == "new" && args.empty?
+ if (config[:current_task] || config[:current_command]).name == "new" && args.empty?
raise Error, "The site path is required. For details run: troy help new"
end
super
end