mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
annotate required flags for bash_completions
This commit is contained in:
@@ -54,6 +54,7 @@ func NewCmdPortForward(f *cmdutil.Factory) *cobra.Command {
|
||||
},
|
||||
}
|
||||
cmd.Flags().StringP("pod", "p", "", "Pod name")
|
||||
cmd.MarkFlagRequired("pod")
|
||||
// TODO support UID
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user