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

Method getBoolFlagValue

cf/flags/flags.go:143–154  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

141}
142
143func (c *flagContext) getBoolFlagValue(args []string) bool {
144 if c.cursor >= len(args)-1 {
145 return true
146 }
147
148 b, err := strconv.ParseBool(args[c.cursor+1])
149 if err == nil {
150 c.cursor++
151 return b
152 }
153 return true
154}
155
156func (c *flagContext) Args() []string {
157 return c.args

Callers 1

ParseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected