Merge pull request #3621 from yichengq/usage-stderr

etcdmain: print usage in stderr when flag.Parse fail
release-3.1
Xiang Li 2016-07-13 16:56:26 -07:00 committed by GitHub
commit 3d109be3b4
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func newConfig() *config {
fs := cfg.FlagSet
fs.Usage = func() {
fmt.Println(usageline)
fmt.Fprintln(os.Stderr, usageline)
}
fs.StringVar(&cfg.configFile, "config-file", "", "Path to the server configuration file")