summaryrefslogtreecommitdiffstats
path: root/bin/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build.js')
-rw-r--r--bin/build.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build.js b/bin/build.js
index 5894d00..196bead 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -16,6 +16,11 @@ var buildCommand = function(command) {
};
+var buildEbookCommand = function(command) {
+ return buildCommand(command)
+ .option('-c, --cover <path>', 'Cover image, default is cover.jpg if exists');
+};
+
var makeBuildFunc = function(converter) {
return function(dir, options) {
dir = dir || process.cwd();
@@ -43,5 +48,6 @@ var makeBuildFunc = function(converter) {
module.exports = {
folder: makeBuildFunc(generate.folder),
file: makeBuildFunc(generate.file),
- command: buildCommand
+ command: buildCommand,
+ commandEbook: buildEbookCommand
};