summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rwxr-xr-xindex.js4
2 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index ecc5ad1..a09cefb 100644
--- a/README.md
+++ b/README.md
@@ -101,6 +101,7 @@ Help
-V, --version output the version number
-d, --max-commit-diff [max-commit-diff] maximum difference in minutes between commits counted to one session. Default: 120
-a, --first-commit-add [first-commit-add] how many minutes first commit of session should add to total. Default: 120
+ -s, --since [since-certain-date] Analyze data since certain date. [always|yesterday|tonight|lastweek|yyyy-mm-dd] Default: always'
Examples:
@@ -116,6 +117,14 @@ Help
$ git hours --first-commit-add 300
+ - Estimate hours work in repository since yesterday
+
+ $ git hours --since yesterday
+
+ - Estimate hours work in repository since 2015-01-31
+
+ $ git hours --since 2015-01-31
+
For more details, visit https://github.com/kimmobrunfeldt/git-hours
diff --git a/index.js b/index.js
index 13f3806..f2bfea1 100755
--- a/index.js
+++ b/index.js
@@ -85,8 +85,8 @@ function parseArgs() {
int
)
.option(
- '-s, --since [Since date to analyze]',
- 'Since date to start count hours. [always|yesterday|tonight|lastweek|yyyy-mm-dd] Default: ' + config.since,
+ '-s, --since [since-certain-date]',
+ 'Analyze data since certain date. [always|yesterday|tonight|lastweek|yyyy-mm-dd] Default: ' + config.since,
String
);