Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
248
func
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
NewConfig
Function · 0.92
Calls
1
GetName
Method · 0.80
Tested by
no test coverage detected