From 9e9322bdd6d3e7c60ed451db9b2a43e01db2fc80 Mon Sep 17 00:00:00 2001 From: Lee Verberne Date: Wed, 23 Sep 2020 15:06:16 +0200 Subject: [PATCH] Update the use message for kubectl debug The command now supports type syntax similar to `kubectl get`. Kubernetes-commit: 40904c7a7de4bcb050030eaf53dfb21c3f076ae9 --- pkg/cmd/debug/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/debug/debug.go b/pkg/cmd/debug/debug.go index 6a6fe892..51d9d676 100644 --- a/pkg/cmd/debug/debug.go +++ b/pkg/cmd/debug/debug.go @@ -135,7 +135,7 @@ func NewCmdDebug(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra. o := NewDebugOptions(streams) cmd := &cobra.Command{ - Use: "debug NAME --image=image [ -- COMMAND [args...] ]", + Use: "debug (POD | TYPE[[.VERSION].GROUP]/NAME) --image=image [ -- COMMAND [args...] ]", DisableFlagsInUseLine: true, Short: i18n.T("Attach a debug container to a running pod"), Long: debugLong,