mirror of
https://github.com/golang/go
synced 2024-11-17 23:04:56 -07:00
flag: document Nflag function
R=golang-dev, r CC=golang-dev https://golang.org/cl/4279065
This commit is contained in:
parent
893e02ab59
commit
19aecba1d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user