Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
0 is not a valid day value.
Browse files Browse the repository at this point in the history
Days should start at 1.
  • Loading branch information
jorinvo committed May 8, 2017
1 parent 88ed0b2 commit 5e31183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
versionFlag = flag.Bool("version", false, "Print binary version")
month = flags.Monthlist("month", "1 to 12")
weekday = flags.Weekdaylist("weekday", "mo,tu,we,th,fr,sa,su")
day = flags.Intlist("day", "0 to 31", 0, 31)
day = flags.Intlist("day", "1 to 31", 1, 31)
hour = flags.Intlist("hour", "0 to 23", 0, 23)
minute = flags.Intlist("minute", "0 to 59", 0, 59)
second = flags.Intlist("second", "0 to 59", 0, 59)
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Thanks to [runwhen](http://code.dogmap.org/runwhen/) for inspiration.

Flags:
-day value
0 to 31
1 to 31
-hour value
0 to 23
-minute value
Expand All @@ -56,7 +56,7 @@ Thanks to [runwhen](http://code.dogmap.org/runwhen/) for inspiration.
-second value
0 to 59
-silent
Surpress all output
Suppress all output
-version
Print binary version
-weekday value
Expand Down

0 comments on commit 5e31183

Please sign in to comment.