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

Method getFlagNameWithShortName

cf/flags/flags.go:275–282  ·  view source on GitHub ↗
(shortName string)

Source from the content-addressed store, hash-verified

273}
274
275func (c *flagContext) getFlagNameWithShortName(shortName string) string {
276 for n, f := range c.cmdFlags {
277 if f.GetShortName() == shortName {
278 return n
279 }
280 }
281 return ""
282}
283
284func (c *flagContext) isFlagProvided(flg *string) bool {
285 if _, ok := c.flagsets[*flg]; !ok {

Callers 2

ParseMethod · 0.95
isFlagProvidedMethod · 0.95

Calls 1

GetShortNameMethod · 0.65

Tested by

no test coverage detected