From e21005d498d78287247b8196e5301ed8553dee03 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Thu, 2 Mar 2023 07:22:32 +0100 Subject: [PATCH] Improve comments --- moar.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/moar.go b/moar.go index 4c22be7..fdf9a4e 100644 --- a/moar.go +++ b/moar.go @@ -218,8 +218,11 @@ func main() { panic(err) }() - flagSet := flag.NewFlagSet("", flag.ContinueOnError) + flagSet := flag.NewFlagSet("", + flag.ContinueOnError, // We want to do our own error handling + ) flagSet.SetOutput(io.Discard) // We want to do our own printing + printVersion := flagSet.Bool("version", false, "Prints the moar version number") debug := flagSet.Bool("debug", false, "Print debug logs after exiting") trace := flagSet.Bool("trace", false, "Print trace logs after exiting")