From 1f40b841b3fe4399b19e0fc8b1824583742e2cf2 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 16 Apr 2014 17:14:48 -0700 Subject: [PATCH] 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 --- src/pkg/flag/flag.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.51.0