lib/kitabu/cli.rb in kitabu-1.0.3 vs lib/kitabu/cli.rb in kitabu-1.0.4

- old
+ new

@@ -7,10 +7,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 e-Book path is required. For details run: kitabu help new" end super end