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()