mirror of
https://github.com/golang/go
synced 2024-11-26 05:57:58 -07:00
flag: fix example in doc comment.
Fixes #1615. R=dsymonds CC=golang-dev https://golang.org/cl/4277058
This commit is contained in:
parent
42bc7fc8ca
commit
52b95970ca
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
flag.Bool(...) // global options
|
flag.Bool(...) // global options
|
||||||
flag.Parse() // parse leading command
|
flag.Parse() // parse leading command
|
||||||
subcmd := flag.Args(0)
|
subcmd := flag.Arg[0]
|
||||||
switch subcmd {
|
switch subcmd {
|
||||||
// add per-subcommand options
|
// add per-subcommand options
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user