From: Rob Pike Date: Thu, 17 Apr 2014 00:14:48 +0000 (-0700) Subject: flag: document that Bool also accepts "T" and "F" X-Git-Tag: go1.3beta1~42 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1f40b841b3fe4399b19e0fc8b1824583742e2cf2;p=gostls13.git flag: document that Bool also accepts "T" and "F" Fixes #7752. LGTM=bradfitz, ruiu R=golang-codereviews, bradfitz, ruiu CC=golang-codereviews https://golang.org/cl/88690043 --- diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index 764ed7c8f5..cd2a165be1 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -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