Commit 9db2bc74 authored by Rob Pike's avatar Rob Pike

flag: fix error in documentation example.

Fixes #1615.
This time for sure.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/4275079
parent 071d212a
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment