MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / GetBoolOpt

Function GetBoolOpt

commands/base_command.go:127–130  ·  view source on GitHub ↗

GetBoolOpt gets the option identified by the specified name.

(name string, flags *flag.FlagSet)

Source from the content-addressed store, hash-verified

125
126// GetBoolOpt gets the option identified by the specified name.
127func GetBoolOpt(name string, flags *flag.FlagSet) bool {
128 opt, _ := strconv.ParseBool(GetStringOpt(name, flags))
129 return opt
130}
131
132// GetStringOpt gets the option identified by the specified name.
133func GetStringOpt(name string, flags *flag.FlagSet) string {

Callers 9

executeInternalMethod · 0.85
NewDeploymentStrategyFunction · 0.85
executeInternalMethod · 0.85
executeInternalMethod · 0.85
executeInternalMethod · 0.85

Calls 1

GetStringOptFunction · 0.85

Tested by

no test coverage detected