]> Cypherpunks repositories - gostls13.git/commit
flag: make -help nicer.
authorRob Pike <r@golang.org>
Sun, 10 Jul 2011 23:35:50 +0000 (09:35 +1000)
committerRob Pike <r@golang.org>
Sun, 10 Jul 2011 23:35:50 +0000 (09:35 +1000)
commite44853c969fbb4f6cfa20e873638f095e20dee5e
treebdd11237baf6f4ab7e8dd707fd3c6f745bcdc59c
parentabae84713462d517315ac5ee3aa522e7922da52b
flag: make -help nicer.
- suppress the print that -help is not defined.
- return a special error code if -help is set
- do not change behavior if an explict "help" flag is defined.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4641099
src/pkg/flag/flag.go
src/pkg/flag/flag_test.go