1
0
mirror of https://github.com/golang/go synced 2024-11-19 23:44:43 -07:00

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
This commit is contained in:
Rob Pike 2014-04-16 17:14:48 -07:00
parent fb91559fbd
commit 1f40b841b3

View 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