From 76f65ea8c8f026fc56d5050b1b7ee5fcf73338ba Mon Sep 17 00:00:00 2001 From: nexustar Date: Thu, 2 Jun 2022 12:02:28 +0800 Subject: [PATCH] fix edit-cluster help information (#1900) --- components/cluster/command/edit_config.go | 3 ++- components/dm/command/edit_config.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cluster/command/edit_config.go b/components/cluster/command/edit_config.go index a305c53ec4..4f2450f9f1 100644 --- a/components/cluster/command/edit_config.go +++ b/components/cluster/command/edit_config.go @@ -22,7 +22,8 @@ func newEditConfigCmd() *cobra.Command { opt := manager.EditConfigOptions{} cmd := &cobra.Command{ Use: "edit-config ", - Short: "Edit TiDB cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", + Short: "Edit TiDB cluster config", + Long: "Edit TiDB cluster config. Will use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help() diff --git a/components/dm/command/edit_config.go b/components/dm/command/edit_config.go index e20b531128..6e7521c572 100644 --- a/components/dm/command/edit_config.go +++ b/components/dm/command/edit_config.go @@ -23,6 +23,7 @@ func newEditConfigCmd() *cobra.Command { cmd := &cobra.Command{ Use: "edit-config ", Short: "Edit DM cluster config", + Long: "Edit DM cluster config. Will use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help()