From f4875ede75e1433f6469753fedb019ea0d2bb418 Mon Sep 17 00:00:00 2001 From: simitt Date: Mon, 16 Jul 2018 15:50:38 +0200 Subject: [PATCH] deprecate setup cmd. --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 7cdf933165a..9e961d5bf7f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -37,4 +37,6 @@ var RootCmd *cmd.BeatsRootCmd func init() { var runFlags = pflag.NewFlagSet(Name, pflag.ExitOnError) RootCmd = cmd.GenRootCmdWithIndexPrefixWithRunFlags(Name, IdxPattern, "", beater.New, runFlags) + RootCmd.RunCmd.Flags().MarkDeprecated("setup", "use Kibana UI for initial setup.") + RootCmd.SetupCmd.Deprecated = "use Kibana UI for initial setup." }