mirror of https://github.com/k3s-io/k3s
Mark deprecated info in short description of deprecated commands.
parent
cc432dbc77
commit
7092307f5e
|
@ -401,6 +401,7 @@ func deprecatedAlias(deprecatedVersion string, cmd *cobra.Command) *cobra.Comman
|
|||
|
||||
cmd.Use = deprecatedVersion
|
||||
cmd.Deprecated = fmt.Sprintf("use %q instead", originalName)
|
||||
cmd.Short = fmt.Sprintf("%s. This command is deprecated, use %q instead", cmd.Short, originalName)
|
||||
cmd.Hidden = true
|
||||
return cmd
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue