MCPcopy Create free account
hub / github.com/cli/cli / newUsageError

Function newUsageError

script/ghmock/main.go:184–186  ·  view source on GitHub ↗
(format string, args ...any)

Source from the content-addressed store, hash-verified

182func (e usageError) Unwrap() error { return e.err }
183
184func newUsageError(format string, args ...any) error {
185 return usageError{fmt.Errorf(format, args...)}
186}
187
188// askedForHelp reports whether args include a help flag. Commands that take no
189// flags use it, since only a flag set returns flag.ErrHelp on its own.

Callers 13

parseExportArgsFunction · 0.85
parseSetArgsFunction · 0.85
parseWithNameFunction · 0.85
parseScaffoldArgsFunction · 0.85
parseSchemaArgsFunction · 0.85
schemaAtFunction · 0.85
cmdSchemasFunction · 0.85
parseRunArgsFunction · 0.85
parseRepoArgsFunction · 0.85
parseWriteArgsFunction · 0.85
parseGitArgsFunction · 0.85
parseLogArgsFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected