MCPcopy Create free account
hub / github.com/docopt/docopt.go / Error

Method Error

docopt.go:582–584  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

580}
581
582func (e UserError) Error() string {
583 return e.msg
584}
585func newUserError(msg string, f ...interface{}) error {
586 return &UserError{fmt.Sprintf(msg, f...), ""}
587}

Callers 15

TestPatternFlatFunction · 0.45
TestCommandsFunction · 0.45
TestParseArgvFunction · 0.45
TestParsePatternFunction · 0.45
TestMatchingParenFunction · 0.45
TestAllowDoubleDashFunction · 0.45
TestDocoptFunction · 0.45
TestLanguageErrorsFunction · 0.45
TestIssue40Function · 0.45
TestCountMultipleFlagsFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestPatternFlatFunction · 0.36
TestCommandsFunction · 0.36
TestParseArgvFunction · 0.36
TestParsePatternFunction · 0.36
TestMatchingParenFunction · 0.36
TestAllowDoubleDashFunction · 0.36
TestDocoptFunction · 0.36
TestLanguageErrorsFunction · 0.36
TestIssue40Function · 0.36
TestCountMultipleFlagsFunction · 0.36