MCPcopy
hub / github.com/mislav/hub / Value

Method Value

utils/args_parser.go:152–158  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

150}
151
152func (p *ArgsParser) Value(name string) string {
153 if f, found := p.flagMap[name]; found {
154 return f.lastValue()
155 } else {
156 return ""
157 }
158}
159
160func (p *ArgsParser) AllValues(name string) []string {
161 if f, found := p.flagMap[name]; found {

Callers 15

TestArgsParserFunction · 0.95
TestArgsParser_BoolFunction · 0.95
TestArgsParser_BoolValueFunction · 0.95
TestArgsParser_DashesFunction · 0.95
IntMethod · 0.95
TestArgsParser_WithUsageFunction · 0.80
listReleasesFunction · 0.80
showReleaseFunction · 0.80
downloadReleaseFunction · 0.80
createReleaseFunction · 0.80

Calls 1

lastValueMethod · 0.80

Tested by 8

TestArgsParserFunction · 0.76
TestArgsParser_BoolFunction · 0.76
TestArgsParser_BoolValueFunction · 0.76
TestArgsParser_DashesFunction · 0.76
TestArgsParser_WithUsageFunction · 0.64
TestFlagsAfterArgumentsFunction · 0.64