1
1
mirror of https://github.com/walles/moar.git synced 2024-07-14 15:20:29 +03:00

Improve comments

This commit is contained in:
Johan Walles 2023-03-02 07:22:32 +01:00
parent e17e6bdac2
commit e21005d498

View File

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