rename crawler config option to heal (#10678)

This commit is contained in:
Harshavardhana
2020-10-14 13:51:51 -07:00
committed by GitHub
parent f9be783f3e
commit 2042d4873c
7 changed files with 30 additions and 25 deletions

View File

@@ -98,6 +98,9 @@ func serverCmdArgs(ctx *cli.Context) []string {
v = env.Get(config.EnvEndpoints, "")
}
if v == "" {
if !ctx.Args().Present() || ctx.Args().First() == "help" {
cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1)
}
return ctx.Args()
}
return strings.Fields(v)