MCPcopy
hub / github.com/urfave/cli / prefixFor

Function prefixFor

docs.go:10–18  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

8)
9
10func prefixFor(name string) (prefix string) {
11 if len(name) == 1 {
12 prefix = "-"
13 } else {
14 prefix = "--"
15 }
16
17 return prefix
18}
19
20// Returns the placeholder, if any, and the unquoted usage string.
21func unquoteUsage(usage string) (string, string) {

Callers 1

prefixedNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected