mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Remove warning for deprecated flag usage as pflag already does that
This commit is contained in:
parent
888119a47c
commit
75804c35aa
@ -154,7 +154,6 @@ func (p *ExecOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, argsIn []s
|
|||||||
return cmdutil.UsageErrorf(cmd, execUsageStr)
|
return cmdutil.UsageErrorf(cmd, execUsageStr)
|
||||||
}
|
}
|
||||||
if len(p.PodName) != 0 {
|
if len(p.PodName) != 0 {
|
||||||
printDeprecationWarning(p.ErrOut, "exec POD_NAME", "-p POD_NAME")
|
|
||||||
if len(argsIn) < 1 {
|
if len(argsIn) < 1 {
|
||||||
return cmdutil.UsageErrorf(cmd, execUsageStr)
|
return cmdutil.UsageErrorf(cmd, execUsageStr)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user