]> Cypherpunks repositories - gostls13.git/commitdiff
flag: describe valid input for Duration flags.
authorDavid Symonds <dsymonds@golang.org>
Tue, 7 Feb 2012 06:50:04 +0000 (17:50 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 7 Feb 2012 06:50:04 +0000 (17:50 +1100)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5639046

src/pkg/flag/flag.go

index 1719af89a1237dfb78338aeb0b433debb74152e6..c28d0e7207428b23060575193ebe4b0b6fb5082f 100644 (file)
@@ -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