Skip to content

Commit

Permalink
Merge branch 'release/0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen Premaratne committed May 18, 2020
2 parents 56c2a00 + 620c66f commit 46d6803
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 84 deletions.
4 changes: 3 additions & 1 deletion argparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (app *App) Parser() {
"HELP: Print the timesheet of the day -d is also available to change the week")
flag.BoolVar(&app.PrintWeek, "week", false,
"HELP: Print timesheet of the current week. -d is also available to change the week")
flag.BoolVar(&app.PrintMonth, "month", false,
"HELP: Print timesheet of the current month. -d is also available to change the week")
flag.BoolVar(&app.Version, "v", false, "Print application version")
flag.Parse()
app.validate()
Expand Down Expand Up @@ -77,7 +79,7 @@ func (app *App) validate() {
os.Exit(0)
}

if app.TimeRemaining || app.PrintWeek || app.History {
if app.TimeRemaining || app.PrintWeek || app.History || app.PrintMonth {
return
}

Expand Down
Loading

0 comments on commit 46d6803

Please sign in to comment.