diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-01 16:42:15 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-01 16:42:15 -0700 |
commit | 7121b7efe3def5848ba011a23d25dd6d8d7980d6 (patch) | |
tree | ed04e95300c446fe770962bf6d15686764d23521 /bin/gitbook.js | |
parent | d02581a21cbe3298480d7eceb8232019d6621d4b (diff) | |
download | gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.zip gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.tar.gz gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.tar.bz2 |
Fix #4: Add option for defining description
Diffstat (limited to 'bin/gitbook.js')
-rwxr-xr-x | bin/gitbook.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gitbook.js b/bin/gitbook.js index fc9bfc3..c21b955 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -26,11 +26,12 @@ prog .description('Build a gitbook from a directory') .option('-o, --output <directory>', 'Path to output directory, defaults to ./_book') .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') .action(buildFunc = function(dir, options) { dir = dir || process.cwd(); outputDir = options.output || path.join(dir, '_book'); - + console.log('Starting build ...'); // Get repo's URL return utils.gitURL(dir) @@ -47,6 +48,7 @@ prog outputDir, { title: options.title || utils.titleCase(repo), + description: options.intro, github: options.github || repoID } ); |