Update kubectl exec use to put flags in the right place

This commit is contained in:
Maciej Szulik 2019-05-07 21:47:03 +02:00
parent 8ea9edbb02
commit c1cd89f5cd
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -82,7 +82,7 @@ func NewCmdExec(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.C
Executor: &DefaultRemoteExecutor{}, Executor: &DefaultRemoteExecutor{},
} }
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "exec (POD | TYPE/NAME) [-c CONTAINER] -- COMMAND [args...]", Use: "exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...]",
DisableFlagsInUseLine: true, DisableFlagsInUseLine: true,
Short: i18n.T("Execute a command in a container"), Short: i18n.T("Execute a command in a container"),
Long: "Execute a command in a container.", Long: "Execute a command in a container.",