Fix typo; Tweak hour/minute defaults

This commit is contained in:
Zorchenhimer 2021-07-10 13:22:51 -04:00
parent 9e8008f090
commit 6da16777cf
Signed by: Zorchenhimer
GPG Key ID: 70A1AB767AAB9C20
1 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@ func main() {
var targetSecond int var targetSecond int
flag.IntVar(&targetHour, "target-hour", -1, "") flag.IntVar(&targetHour, "target-hour", -1, "")
flag.IntVar(&targetMinute, "target-minute", -1, "") flag.IntVar(&targetMinute, "target-minute", 0, "")
flag.IntVar(&targetSecond, "target-second", -1, "") flag.IntVar(&targetSecond, "target-second", 0, "")
flag.Parse() flag.Parse()
@ -90,7 +90,7 @@ func main() {
) )
} }
fmt.Printf("Output file: %s\nCountdown to: %s\n", filename, untiluntil) fmt.Printf("Output file: %s\nCountdown to: %s\n", filename, until)
var err error var err error
tp := template.New("time") tp := template.New("time")