From 76065c1eb2ccab75872c2a1a818ecff9d538f379 Mon Sep 17 00:00:00 2001 From: Jalin Wang Date: Wed, 12 Feb 2025 15:42:09 +0800 Subject: [PATCH] chore: fix the output of `watch -i` Signed-off-by: Jalin Wang --- etcdctl/ctlv3/command/watch_command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etcdctl/ctlv3/command/watch_command.go b/etcdctl/ctlv3/command/watch_command.go index fa8fc72d82f9..205cc2adf3d0 100644 --- a/etcdctl/ctlv3/command/watch_command.go +++ b/etcdctl/ctlv3/command/watch_command.go @@ -105,7 +105,7 @@ func watchInteractiveFunc(cmd *cobra.Command, osArgs []string, envKey, envRange args := Argify(l) if len(args) < 1 { - fmt.Fprintf(os.Stderr, "Invalid command: %s (watch and progress supported)\n", l) + fmt.Fprintf(os.Stderr, "Invalid command: %s (only `watch` and `progress` supported)\n", l) continue } switch args[0] { @@ -131,7 +131,7 @@ func watchInteractiveFunc(cmd *cobra.Command, osArgs []string, envKey, envRange cobrautl.ExitWithError(cobrautl.ExitError, err) } default: - fmt.Fprintf(os.Stderr, "Invalid command %s (only support watch)\n", l) + fmt.Fprintf(os.Stderr, "Invalid command %s (only support `watch` & `progress`)\n", l) continue } }