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")