From 828038a8fe2142599ec557da2d12bb88b76fa0dd Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Wed, 14 Jan 2026 12:11:59 +0000 Subject: [PATCH] chore: clarify --wait flag help text Improve the description to explain the three usage scenarios: - --wait alone defaults to 'watcher' strategy - --wait= uses the specified strategy - flag omitted defaults to 'hookOnly' Signed-off-by: Evans Mungai --- pkg/cmd/flags.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go index 251bfa032..6d9d117f8 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -59,9 +59,8 @@ func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) { cmd.Flags().Var( newWaitValue(kube.HookOnlyStrategy, wait), "wait", - "if specified, wait until resources are ready (up to --timeout). Values: 'watcher', 'hookOnly', and 'legacy'.", + "wait until resources are ready (up to --timeout). Use '--wait' alone for 'watcher' strategy, or specify one of: 'watcher', 'hookOnly', 'legacy'. Default when flag is omitted: 'hookOnly'.", ) - // Sets the strategy to use the watcher strategy if `--wait` is used without an argument cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy) }