Fix snake case to camel case
@@ -125,7 +125,7 @@ func buildCLI() *cli.App {
zone := c.String("zone")
configDir := path.Join(c.String("root"), c.String("config"))
services := c.StringSlice("service")
- allow_no_auth := c.Bool("allow-no-auth")
+ allowNoAuth := c.Bool("allow-no-auth")
// For backward compatibility to support old flag format (i.e. `--services=frontend,history,matching`).
if c.IsSet("services") {
@@ -167,7 +167,7 @@ func buildCLI() *cli.App {
if err != nil {
return cli.Exit(fmt.Sprintf("Unable to instantiate authorizer. Error: %v", err), 1)
}
- if authorization.IsNoopAuthorizer(authorizer) && !allow_no_auth {
+ if authorization.IsNoopAuthorizer(authorizer) && !allowNoAuth {
logger.Warn(
"Not using any authorizer and flag `--allow-no-auth` not detected. " +
"Future versions will require using the flag `--allow-no-auth` " +
