diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-04 15:38:01 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-04 15:38:01 -0700 |
commit | 355094bbb311fefc216ad6224693cf823d87c282 (patch) | |
tree | 75b17d5f947633c59da9b78a4ad7ad2a8dda28c1 /bin/gitbook.js | |
parent | b3adedb468231e1a8497607ceb7455d58037c2c4 (diff) | |
download | gitbook-355094bbb311fefc216ad6224693cf823d87c282.zip gitbook-355094bbb311fefc216ad6224693cf823d87c282.tar.gz gitbook-355094bbb311fefc216ad6224693cf823d87c282.tar.bz2 |
Change option for changing generator to format
Diffstat (limited to 'bin/gitbook.js')
-rwxr-xr-x | bin/gitbook.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/gitbook.js b/bin/gitbook.js index 894688a..c280282 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -31,7 +31,7 @@ prog .command('build [source_dir]') .description('Build a gitbook from a directory') .option('-o, --output <directory>', 'Path to output directory, defaults to ./_book') -.option('-g, --generator <name>', 'Change generator, defaults to site, availables are: '+_.keys(generators).join(", ")) +.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, defaults to repo name') .option('-i, --intro <intro>', 'Description of the book to generate') .option('-g, --github <repo_path>', 'ID of github repo like : username/repo') @@ -69,7 +69,7 @@ prog title: title, description: options.intro, github: githubID, - generator: options.generator, + generator: options.format, theme: options.theme } ); @@ -85,7 +85,7 @@ prog .description('Build then serve a gitbook from a directory') .option('-p, --port <port>', 'Port for server to listen on', 4000) .option('-o, --output <directory>', 'Path to output directory, defaults to ./_book') -.option('-g, --generator <name>', 'Change generator, defaults to site, availables are: '+_.keys(generators).join(", ")) +.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, defaults to repo name') .option('-g, --github <repo_path>', 'ID of github repo like : username/repo') .option('-gh, --githubHost <url>', 'The url of the github host (defaults to https://github.com/') |