summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rwxr-xr-xindex.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/index.js b/index.js
index 2f7830e..51856b4 100755
--- a/index.js
+++ b/index.js
@@ -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:');