Skip to content

Commit

Permalink
Clean-up documentation and examples for new arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Elsmore-Paddock committed Jul 31, 2017
1 parent 77cca39 commit 1d4117a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Help
-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'
-b, --branch [branch-name] Analyze only data on the specified branch. Default: all branches

Examples:

Expand All @@ -122,6 +123,10 @@ Help
- Estimate hours work in repository since 2015-01-31

$ git hours --since 2015-01-31
- Estimate hours work in repository on the "master" branch

$ git hours --branch master

For more details, visit /~https://github.com/kimmobrunfeldt/git-hours

Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function parseArgs() {
String
)
.option(
'-b, --branch [branch name]',
'-b, --branch [branch-name]',
'Analyze only data on the specified branch. Default: ' + config.branch,
String
);
Expand Down Expand Up @@ -138,9 +138,9 @@ function parseArgs() {
console.log('');
console.log(' $ git hours --since 2015-01-31');
console.log('');
console.log(' - Estimate hours work in repository on the "develop" branch');
console.log(' - Estimate hours work in repository on the "master" branch');
console.log('');
console.log(' $ git hours --branch develop');
console.log(' $ git hours --branch master');
console.log('');
console.log(' For more details, visit /~https://github.com/kimmobrunfeldt/git-hours');
console.log('');
Expand Down

0 comments on commit 1d4117a

Please sign in to comment.