diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-21 23:23:53 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-21 23:23:53 +0200 |
commit | 98c133df3c9077c1b06748c3206bea3ff011ed3a (patch) | |
tree | 0a5eef9d97897a6028d9f3606ea49f5494971ac5 | |
parent | f86c27b090ab88598679b7e69b87c3286bdc7a17 (diff) | |
download | gitbook-98c133df3c9077c1b06748c3206bea3ff011ed3a.zip gitbook-98c133df3c9077c1b06748c3206bea3ff011ed3a.tar.gz gitbook-98c133df3c9077c1b06748c3206bea3ff011ed3a.tar.bz2 |
Change plugins separator to ","
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | bin/build.js | 2 | ||||
-rw-r--r-- | lib/generate/plugin.js | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -36,7 +36,7 @@ Options for commands `build` and `serve` are: -o, --output <directory> Path to output directory, defaults to ./_book -f, --format <name> Change generation format, defaults to site, availables are: site, page, pdf, json --githubHost <url> The url of the github host (defaults to https://github.com/) ---plugins <plugins> List of plugins to use separated by ":" +--plugins <plugins> List of plugins to use separated by "," --pluginsConfig <json file> JSON File containing plugins configuration ``` diff --git a/bin/build.js b/bin/build.js index 5948fe3..6f90e1d 100644 --- a/bin/build.js +++ b/bin/build.js @@ -14,7 +14,7 @@ var buildCommand = function(command) { .option('-f, --format <name>', 'Change generation format, defaults to site, availables are: '+_.keys(generators).join(", ")) .option('-t, --title <name>', 'Name of the book to generate, default is extracted from readme') .option('-i, --intro <intro>', 'Description of the book to generate, default is extracted from readme') - .option('--plugins <plugins>', 'List of plugins to use separated by ":"') + .option('--plugins <plugins>', 'List of plugins to use separated by ","') .option('--pluginsConfig <json file>', 'JSON File containing plugins configuration') .option('-g, --github <repo_path>', 'ID of github repo like : username/repo') .option('--githubHost <url>', 'The url of the github host (defaults to https://github.com/'); diff --git a/lib/generate/plugin.js b/lib/generate/plugin.js index cd85402..5bd332b 100644 --- a/lib/generate/plugin.js +++ b/lib/generate/plugin.js @@ -131,7 +131,7 @@ Plugin.fromList = function(names) { return plugin; }); - if (_.size(failed) > 0) return Q.reject(new Error("Error loading plugins: "+failed.join(":"))); + if (_.size(failed) > 0) return Q.reject(new Error("Error loading plugins: "+failed.join(","))); // Get all resources var resources = _.chain(RESOURCES) |