func main() { defer func() { if r := recover(); r != nil { log.Println(os.Args[0], " ", r) } }() cmd.App().Run(os.Args) }
func main() { defer func() { if r := recover(); r != nil { log.Println(os.Args[0], " ", r) } }() runtime.GOMAXPROCS(runtime.NumCPU()) cmd.App().Run(os.Args) }