Commit 75804c35 authored by QuaSoft's avatar QuaSoft

Remove warning for deprecated flag usage as pflag already does that

parent 888119a4
...@@ -154,7 +154,6 @@ func (p *ExecOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, argsIn []s ...@@ -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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment