MCPcopy Create free account
hub / github.com/cloudfoundry/cli / extractEqualSignIfAny

Method extractEqualSignIfAny

cf/flags/flags.go:235–242  ·  view source on GitHub ↗
(flg *string, args *[]string)

Source from the content-addressed store, hash-verified

233}
234
235func (c *flagContext) extractEqualSignIfAny(flg *string, args *[]string) {
236 if strings.Contains(*flg, "=") {
237 tmpAry := strings.SplitN(*flg, "=", 2)
238 *flg = tmpAry[0]
239 tmpArg := append((*args)[:c.cursor], tmpAry[1])
240 *args = append(tmpArg, (*args)[c.cursor:]...)
241 }
242}
243
244func (c *flagContext) setDefaultFlagValueIfAny() {
245 var v interface{}

Callers 1

ParseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected