From: David Symonds Date: Tue, 7 Feb 2012 06:50:04 +0000 (+1100) Subject: flag: describe valid input for Duration flags. X-Git-Tag: weekly.2012-02-07~15 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=32ffc62348632898fa420aaea4f8b2f406979e7a;p=gostls13.git flag: describe valid input for Duration flags. R=golang-dev, r CC=golang-dev https://golang.org/cl/5639046 --- 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