Commit 19aecba1 authored by Fazlul Shahriar's avatar Fazlul Shahriar Committed by Rob Pike

flag: document Nflag function

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4279065
parent 893e02ab
......@@ -289,6 +289,7 @@ func failf(format string, a ...interface{}) {
os.Exit(2)
}
// NFlag returns the number of flags that have been set.
func NFlag() int { return len(flags.actual) }
// Arg returns the i'th command-line argument. Arg(0) is the first remaining argument
......
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