diff options
Diffstat (limited to 'lib/cli')
-rw-r--r-- | lib/cli/helper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli/helper.js b/lib/cli/helper.js index 818fd0c..02cede6 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 |