remove deprecated shorthand flag of client version
This commit is contained in:
@@ -74,10 +74,9 @@ func NewCmdVersion(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *co
|
|||||||
cmdutil.CheckErr(o.Run())
|
cmdutil.CheckErr(o.Run())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cmd.Flags().BoolVarP(&o.ClientOnly, "client", "c", o.ClientOnly, "Client version only (no server required).")
|
cmd.Flags().BoolVar(&o.ClientOnly, "client", o.ClientOnly, "Client version only (no server required).")
|
||||||
cmd.Flags().BoolVarP(&o.Short, "short", "", o.Short, "Print just the version number.")
|
cmd.Flags().BoolVar(&o.Short, "short", o.Short, "Print just the version number.")
|
||||||
cmd.Flags().StringVarP(&o.Output, "output", "o", o.Output, "One of 'yaml' or 'json'.")
|
cmd.Flags().StringVarP(&o.Output, "output", "o", o.Output, "One of 'yaml' or 'json'.")
|
||||||
cmd.Flags().MarkShorthandDeprecated("client", "please use --client instead.")
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user