]> Cypherpunks repositories - gostls13.git/commitdiff
flag: document that Bool also accepts "T" and "F"
authorRob Pike <r@golang.org>
Thu, 17 Apr 2014 00:14:48 +0000 (17:14 -0700)
committerRob Pike <r@golang.org>
Thu, 17 Apr 2014 00:14:48 +0000 (17:14 -0700)
Fixes #7752.

LGTM=bradfitz, ruiu
R=golang-codereviews, bradfitz, ruiu
CC=golang-codereviews
https://golang.org/cl/88690043

src/pkg/flag/flag.go

index 764ed7c8f59e03752e8ad0c5512036976a2c2c5c..cd2a165be19f9ac529fbc589349ef4460ae9d993 100644 (file)
@@ -50,7 +50,8 @@
        ("-" is a non-flag argument) or after the terminator "--".
 
        Integer flags accept 1234, 0664, 0x1234 and may be negative.
-       Boolean flags may be 1, 0, t, f, true, false, TRUE, FALSE, True, False.
+       Boolean flags may be:
+               1, 0, t, f, T, F, true, false, TRUE, FALSE, True, False
        Duration flags accept any input valid for time.ParseDuration.
 
        The default set of command-line flags is controlled by