MCPcopy
hub / github.com/spf13/pflag / VisitAll

Function VisitAll

flag.go:343–345  ·  view source on GitHub ↗

VisitAll visits the command-line flags in lexicographical order or in primordial order if f.SortFlags is false, calling fn for each. It visits all flags, even those not set.

(fn func(*Flag))

Source from the content-addressed store, hash-verified

341// in primordial order if f.SortFlags is false, calling fn for each.
342// It visits all flags, even those not set.
343func VisitAll(fn func(*Flag)) {
344 CommandLine.VisitAll(fn)
345}
346
347// Visit visits the flags in lexicographical order or
348// in primordial order if f.SortFlags is false, calling fn for each.

Callers 1

TestEverythingFunction · 0.85

Calls 1

VisitAllMethod · 0.80

Tested by 1

TestEverythingFunction · 0.68