Skip to content

Commit

Permalink
fix edit-cluster help information (#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Jun 2, 2022
1 parent 04c4927 commit 76f65ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cluster/command/edit_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func newEditConfigCmd() *cobra.Command {
opt := manager.EditConfigOptions{}
cmd := &cobra.Command{
Use: "edit-config <cluster-name>",
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()
Expand Down
1 change: 1 addition & 0 deletions components/dm/command/edit_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func newEditConfigCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "edit-config <cluster-name>",
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()
Expand Down

0 comments on commit 76f65ea

Please sign in to comment.