mirror of
https://github.com/golang/go
synced 2024-11-21 18:04:40 -07:00
flag: fix error in documentation example.
Fixes #1615. This time for sure. R=rsc, gri CC=golang-dev https://golang.org/cl/4275079
This commit is contained in:
parent
071d212a22
commit
9db2bc741e
@ -56,7 +56,7 @@
|
||||
|
||||
flag.Bool(...) // global options
|
||||
flag.Parse() // parse leading command
|
||||
subcmd := flag.Arg[0]
|
||||
subcmd := flag.Arg(0)
|
||||
switch subcmd {
|
||||
// add per-subcommand options
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user