MCPcopy Index your code
hub / github.com/cloudfoundry/cli / isFlagProvided

Method isFlagProvided

cf/flags/flags.go:284–293  ·  view source on GitHub ↗
(flg *string)

Source from the content-addressed store, hash-verified

282}
283
284func (c *flagContext) isFlagProvided(flg *string) bool {
285 if _, ok := c.flagsets[*flg]; !ok {
286 *flg = c.getFlagNameWithShortName(*flg)
287 if _, ok := c.flagsets[*flg]; !ok {
288 return false
289 }
290 }
291
292 return true
293}

Callers 6

IsSetMethod · 0.95
IntMethod · 0.95
Float64Method · 0.95
StringMethod · 0.95
BoolMethod · 0.95
StringSliceMethod · 0.95

Calls 1

Tested by

no test coverage detected