cmd.Flags().MarkDeprecated("pod","This flag is deprecated and will be removed in future. Use exec POD_NAME instead.")
// TODO support UID
cmd.Flags().StringVarP(&options.ContainerName,"container","c",options.ContainerName,"Container name. If omitted, the first container in the pod will be chosen")
cmd.Flags().BoolVarP(&options.Stdin,"stdin","i",options.Stdin,"Pass stdin to the container")
...
...
@@ -168,18 +166,12 @@ type ExecOptions struct {
// Complete verifies command line arguments and loads data from the command environment