Merge pull request #7076 from eparis/bash-5-kubectl-required-flags

annotate required flags for bash_completions
This commit is contained in:
Filip Grzadkowski
2015-05-04 13:26:11 +02:00
8 changed files with 23 additions and 0 deletions

View File

@@ -50,8 +50,10 @@ func NewCmdExec(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *
},
}
cmd.Flags().StringP("pod", "p", "", "Pod name")
cmd.MarkFlagRequired("pod")
// TODO support UID
cmd.Flags().StringP("container", "c", "", "Container name")
cmd.MarkFlagRequired("container")
cmd.Flags().BoolP("stdin", "i", false, "Pass stdin to the container")
cmd.Flags().BoolP("tty", "t", false, "Stdin is a TTY")
return cmd