From 6fa63a5c35ed39344fbd73ec46d3fb8f137871c6 Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Sat, 5 Mar 2016 22:37:25 +0100 Subject: [PATCH] Fix #1172: Fix second argument for ebook generation --- lib/cli/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/helper.js b/lib/cli/helper.js index 818fd0cbd..02cede65e 100644 --- a/lib/cli/helper.js +++ b/lib/cli/helper.js @@ -81,7 +81,7 @@ function ebookCmd(format) { return fs.tmpDir() .then(function(dir) { var ext = '.'+format; - var outputFile = path.resolve(process.cwd(), args[1] || ('book' + ext)); + var outputFile = path.resolve(process.cwd(), args[0] || ('book' + ext)); var output = new EBookOutput(book, { root: dir, format: format