Browse Source

Merge pull request #1166 from bcwaldon/override-usage

etcd: correctly override flag.Usage
Brian Waldon 11 years ago
parent
commit
5059062275
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -91,7 +91,7 @@ func init() {
 }
 
 func main() {
-	flag.CommandLine.Usage = usageWithIgnoredFlagsFunc(flag.CommandLine, deprecated)
+	flag.Usage = usageWithIgnoredFlagsFunc(flag.CommandLine, deprecated)
 	flag.Parse()
 
 	setFlagsFromEnv()