Skip to content

Commit 40904c7

Browse files
committed
Update the use message for kubectl debug
The command now supports type syntax similar to `kubectl get`.
1 parent d39214a commit 40904c7

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/debug

1 file changed

+1
-1
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/debug/debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func NewCmdDebug(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.
135135
o := NewDebugOptions(streams)
136136

137137
cmd := &cobra.Command{
138-
Use: "debug NAME --image=image [ -- COMMAND [args...] ]",
138+
Use: "debug (POD | TYPE[[.VERSION].GROUP]/NAME) --image=image [ -- COMMAND [args...] ]",
139139
DisableFlagsInUseLine: true,
140140
Short: i18n.T("Attach a debug container to a running pod"),
141141
Long: debugLong,

0 commit comments

Comments
 (0)