MCPcopy Create free account
hub / github.com/ethstorage/es-node / CheckRequired

Function CheckRequired

ethstorage/flags/flags.go:248–255  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

246}
247
248func CheckRequired(ctx *cli.Context) error {
249 for _, f := range requiredFlags {
250 if !ctx.GlobalIsSet(f.GetName()) {
251 return fmt.Errorf("flag %s is required", f.GetName())
252 }
253 }
254 return nil
255}

Callers 1

NewConfigFunction · 0.92

Calls 1

GetNameMethod · 0.80

Tested by

no test coverage detected