Skip to content

Commit c1cd89f

Browse files
committed
Update kubectl exec use to put flags in the right place
1 parent 8ea9edb commit c1cd89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubectl/cmd/exec/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func NewCmdExec(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.C
8282
Executor: &DefaultRemoteExecutor{},
8383
}
8484
cmd := &cobra.Command{
85-
Use: "exec (POD | TYPE/NAME) [-c CONTAINER] -- COMMAND [args...]",
85+
Use: "exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...]",
8686
DisableFlagsInUseLine: true,
8787
Short: i18n.T("Execute a command in a container"),
8888
Long: "Execute a command in a container.",

0 commit comments

Comments
 (0)