in tools/mig-scaler/help.go [60:85]
func showUsage(cfg *Config) {
// Standard pflags.PrintDefaults isn't very helpful as it doesn't
// understand commands. This will be called on an error, such as an
// unknown flag, so keep the instructions short. Direct the user to the
// help pages, try and include the topic if possible.
topic := getHelpTopic(cfg)
if topic == "main" || topic == "help" {
topic = ""
}
if topic != "" && !topicExists(topic) {
topic = ""
}
if topic == "" {
fmt.Fprint(os.Stderr,
"For a list of supported commands run:\n"+
" mig-scaler help\n",
)
} else {
fmt.Fprintf(os.Stderr,
"For a list of supported commands run:\n"+
" mig-scaler help %s\n",
topic,
)
}
}