diff options
author | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-28 00:04:22 +0300 |
---|---|---|
committer | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-28 00:04:22 +0300 |
commit | b96d72067409cc2c4fcb38dded0a365531cea19b (patch) | |
tree | 6039267acf0c9a762ed81fb4c4727fd81327e603 | |
parent | 003e794769862964fd83e65bb856cbaee6ab818c (diff) | |
download | git-hours-b96d72067409cc2c4fcb38dded0a365531cea19b.zip git-hours-b96d72067409cc2c4fcb38dded0a365531cea19b.tar.gz git-hours-b96d72067409cc2c4fcb38dded0a365531cea19b.tar.bz2 |
Add default values for commandline options in help
-rwxr-xr-x | index.js | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -48,9 +48,21 @@ function parseArgs() { program .version(require('./package.json').version) .usage('[options]') - .option('-b, --branches [branches]', 'list of branches to calculate commits from e.g. master,dev', list) - .option('-d, --max-commit-diff [max-commit-diff]', 'maximum difference in minutes between commits counted to one session', int) - .option('-a, --first-commit-add [first-commit-add]', 'how many minutes first commit of session should add to total', int) + .option( + '-b, --branches [branches]', + 'list of branches to calculate commits from e.g. master,dev. Default: all local branches', + list + ) + .option( + '-d, --max-commit-diff [max-commit-diff]', + 'maximum difference in minutes between commits counted to one session. Default: ' + config.maxCommitDiffInMinutes, + int + ) + .option( + '-a, --first-commit-add [first-commit-add]', + 'how many minutes first commit of session should add to total. Default: ' + config.firstCommitAdditionInMinutes, + int + ); program.on('--help', function() { console.log(' Examples:'); |