Update the use message for kubectl debug

The command now supports type syntax similar to `kubectl get`.
This commit is contained in:
Lee Verberne 2020-09-23 15:06:16 +02:00
parent d39214ade1
commit 40904c7a7d

View File

@ -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,