Fix #1172: Fix second argument for ebook generation

This commit is contained in:
Samy Pesse
2016-03-05 22:37:25 +01:00
parent 29533908c2
commit 6fa63a5c35
+1 -1
View File
@@ -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