diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-03-05 22:37:25 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-03-05 22:37:25 +0100 |
commit | 6fa63a5c35ed39344fbd73ec46d3fb8f137871c6 (patch) | |
tree | 5701a8c05da327696382675f91336e7ff7f911d4 /lib/cli | |
parent | 29533908c2b28f7d0f596bd25c07e06563f027ae (diff) | |
download | gitbook-6fa63a5c35ed39344fbd73ec46d3fb8f137871c6.zip gitbook-6fa63a5c35ed39344fbd73ec46d3fb8f137871c6.tar.gz gitbook-6fa63a5c35ed39344fbd73ec46d3fb8f137871c6.tar.bz2 |
Fix #1172: Fix second argument for ebook generation
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 |