MCPcopy Create free account
hub / github.com/akamensky/argparse / Error

Method Error

errors.go:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8func (e subCommandError) Error() string {
9 return "[sub]Command required"
10}
11
12func newSubCommandError(cmd *Command) error {
13 return subCommandError{cmd: cmd}

Callers 15

FlagMethod · 0.80
FlagCounterMethod · 0.80
StringMethod · 0.80
IntMethod · 0.80
FloatMethod · 0.80
FileMethod · 0.80
StringListMethod · 0.80
IntListMethod · 0.80
FloatListMethod · 0.80
FileListMethod · 0.80
SelectorMethod · 0.80
message2StringFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestFlagSimple1Function · 0.64
TestFlagSimple2Function · 0.64
TestLongFlagEqualCharFunction · 0.64
TestShortFlagEqualCharFunction · 0.64
TestFlagMultiShorthand1Function · 0.64
TestFlagCounterSimple1Function · 0.64
TestFlagCounterSimple2Function · 0.64