diff --git a/main.go b/main.go index 67530e3..489c08d 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,6 @@ import ( func main() { exitCode := 0 - defer os.Exit(exitCode) paceStr := flag.String("pace", "10s@1", `[duration]@[rate], e.g. "1m@1 30s@1.5 1h@2"`) silent := flag.Bool("silent", false, "Suppress output") @@ -102,4 +101,6 @@ When 0 (default) or negative, reporting is switched off. panic(err) } } + + os.Exit(exitCode) }