mirror of
https://github.com/golang/go
synced 2024-11-25 08:47:56 -07:00
flag: describe valid input for Duration flags.
R=golang-dev, r CC=golang-dev https://golang.org/cl/5639046
This commit is contained in:
parent
9ce23548cb
commit
32ffc62348
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
Integer flags accept 1234, 0664, 0x1234 and may be negative.
|
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, 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
|
The default set of command-line flags is controlled by
|
||||||
top-level functions. The FlagSet type allows one to define
|
top-level functions. The FlagSet type allows one to define
|
||||||
|
Loading…
Reference in New Issue
Block a user