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

Method getFlagValue

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

Source from the content-addressed store, hash-verified

132}
133
134func (c *flagContext) getFlagValue(args []string) (string, error) {
135 if c.cursor >= len(args)-1 {
136 return "", errors.New("No value provided for flag: " + args[c.cursor])
137 }
138
139 c.cursor++
140 return args[c.cursor], nil
141}
142
143func (c *flagContext) getBoolFlagValue(args []string) bool {
144 if c.cursor >= len(args)-1 {

Callers 1

ParseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected