MCPcopy Create free account
hub / github.com/auth0/auth0-cli / markFlagRequired

Function markFlagRequired

internal/cli/flags.go:447–453  ·  view source on GitHub ↗
(cmd *cobra.Command, f *Flag, isUpdate bool)

Source from the content-addressed store, hash-verified

445}
446
447func markFlagRequired(cmd *cobra.Command, f *Flag, isUpdate bool) error {
448 if f.IsRequired && !isUpdate {
449 return cmd.MarkFlagRequired(f.LongForm)
450 }
451
452 return nil
453}
454
455func unexpectedError(err error) error {
456 return fmt.Errorf("an unexpected error occurred: %w", err)

Callers 6

registerStringFunction · 0.85
registerStringSliceFunction · 0.85
registerStringMapFunction · 0.85
registerIntFunction · 0.85
registerIntSliceFunction · 0.85
registerBoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected