diff options
author | David Symonds <dsymonds@golang.org> | 2012-02-07 17:50:04 +1100 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2012-02-07 17:50:04 +1100 |
commit | 32ffc62348632898fa420aaea4f8b2f406979e7a (patch) | |
tree | b2f5203d181f67452f8ccc3ea7ae6ff1f3a49e81 | |
parent | 9ce23548cb74fd7832794bc4d510c7fb7c379c62 (diff) | |
download | go-32ffc62348632898fa420aaea4f8b2f406979e7a.tar.gz go-32ffc62348632898fa420aaea4f8b2f406979e7a.zip |
flag: describe valid input for Duration flags.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5639046
-rw-r--r-- | src/pkg/flag/flag.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index 1719af89a1..c28d0e7207 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -49,6 +49,7 @@ Integer flags accept 1234, 0664, 0x1234 and may be negative. Boolean flags may be 1, 0, 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 top-level functions. The FlagSet type allows one to define |