Skip to content

Commit 6652347

Browse files
authored
Merge pull request kubernetes#89674 from superbrothers/fix-kubectl-alpha-debug
Fix missing a shorthand for container flag of kubectl alpha debug
2 parents 7c53c1e + fca1027 commit 6652347

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
@@ -119,7 +119,7 @@ func NewCmdDebug(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.
119119
func addDebugFlags(cmd *cobra.Command, opt *DebugOptions) {
120120
cmd.Flags().BoolVar(&opt.ArgsOnly, "arguments-only", opt.ArgsOnly, i18n.T("If specified, everything after -- will be passed to the new container as Args instead of Command."))
121121
cmd.Flags().BoolVar(&opt.Attach, "attach", opt.Attach, i18n.T("If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true."))
122-
cmd.Flags().StringVar(&opt.Container, "container", opt.Container, i18n.T("Container name to use for debug container."))
122+
cmd.Flags().StringVarP(&opt.Container, "container", "c", opt.Container, i18n.T("Container name to use for debug container."))
123123
cmd.Flags().StringToString("env", nil, i18n.T("Environment variables to set in the container."))
124124
cmd.Flags().StringVar(&opt.Image, "image", opt.Image, i18n.T("Container image to use for debug container."))
125125
cmd.MarkFlagRequired("image")

0 commit comments

Comments
 (0)