diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index 6c9f3a8407e..4e57e0f0992 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -56,7 +56,7 @@ flag.Bool(...) // global options flag.Parse() // parse leading command - subcmd := flag.Args(0) + subcmd := flag.Arg[0] switch subcmd { // add per-subcommand options }