Print help text to stdout instead of stderr

Fixes #719
This commit is contained in:
Zachary Yedidia
2017-07-01 16:49:08 -04:00
parent 91fb8225d1
commit 42f2af7956

View File

@@ -252,6 +252,7 @@ func main() {
flag.Usage = func() { flag.Usage = func() {
fmt.Println("Usage: micro [OPTIONS] [FILE]...") fmt.Println("Usage: micro [OPTIONS] [FILE]...")
fmt.Print("Micro's options can be set via command line arguments for quick adjustments. For real configuration, please use the bindings.json file (see 'help options').\n\n") fmt.Print("Micro's options can be set via command line arguments for quick adjustments. For real configuration, please use the bindings.json file (see 'help options').\n\n")
flag.CommandLine.SetOutput(os.Stdout)
flag.PrintDefaults() flag.PrintDefaults()
} }