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

Method flagList

cf/flags/flags_usage.go:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (p *flagPresenter) flagList() string {
40 f := p.flagSet
41 var parts []string
42
43 if f.GetName() != "" {
44 parts = append(parts, fmt.Sprintf("--%s", f.GetName()))
45 }
46
47 if f.GetShortName() != "" {
48 parts = append(parts, fmt.Sprintf("-%s", f.GetShortName()))
49 }
50
51 return strings.Join(parts, ", ")
52}
53
54func (p *flagPresenter) usage() string {
55 return p.flagSet.String()

Callers 2

lineMethod · 0.95
maxLineLengthMethod · 0.80

Calls 2

GetNameMethod · 0.65
GetShortNameMethod · 0.65

Tested by

no test coverage detected