Commit 54807130 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Update op-service/util.go

parent b4c028c7
......@@ -62,6 +62,7 @@ func validateEnvVars(prefix string, providedEnvVars []string, definedEnvVars map
return out
}
// WarnOnDeprecatedFlags iterates through the provided deprecatedFlags and logs a warning for each that is set.
func WarnOnDeprecatedFlags(ctx *cli.Context, deprecatedFlags []cli.Flag, log log.Logger) {
for _, flag := range deprecatedFlags {
if ctx.IsSet(flag.Names()[0]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment