mirror of
https://github.com/walles/moar.git
synced 2024-08-16 23:40:35 +03:00
Improve comments
This commit is contained in:
parent
e17e6bdac2
commit
e21005d498
5
moar.go
5
moar.go
@ -218,8 +218,11 @@ func main() {
|
|||||||
panic(err)
|
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
|
flagSet.SetOutput(io.Discard) // We want to do our own printing
|
||||||
|
|
||||||
printVersion := flagSet.Bool("version", false, "Prints the moar version number")
|
printVersion := flagSet.Bool("version", false, "Prints the moar version number")
|
||||||
debug := flagSet.Bool("debug", false, "Print debug logs after exiting")
|
debug := flagSet.Bool("debug", false, "Print debug logs after exiting")
|
||||||
trace := flagSet.Bool("trace", false, "Print trace logs after exiting")
|
trace := flagSet.Bool("trace", false, "Print trace logs after exiting")
|
||||||
|
Loading…
Reference in New Issue
Block a user