From 6da16777cfcbdfc65aa91b58847e12d38a0556f7 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sat, 10 Jul 2021 13:22:51 -0400 Subject: [PATCH] Fix typo; Tweak hour/minute defaults --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 56323db..4e9b6bb 100644 --- a/main.go +++ b/main.go @@ -47,8 +47,8 @@ func main() { var targetSecond int flag.IntVar(&targetHour, "target-hour", -1, "") - flag.IntVar(&targetMinute, "target-minute", -1, "") - flag.IntVar(&targetSecond, "target-second", -1, "") + flag.IntVar(&targetMinute, "target-minute", 0, "") + flag.IntVar(&targetSecond, "target-second", 0, "") 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 tp := template.New("time")