]> Cypherpunks repositories - gostls13.git/commitdiff
flag: document Nflag function
authorFazlul Shahriar <fshahriar@gmail.com>
Sun, 20 Mar 2011 18:45:43 +0000 (11:45 -0700)
committerRob Pike <r@golang.org>
Sun, 20 Mar 2011 18:45:43 +0000 (11:45 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4279065

src/pkg/flag/flag.go

index 4e57e0f09924c0a98583bfa2c541b52058f3aa49..14f4d522c6a4ea23c70d12808c03834cc175e830 100644 (file)
@@ -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