hide deprecated flags
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
a10d81be5d
commit
f60a61bde1
@ -91,6 +91,7 @@ func AddFlags(opts *logsapi.LoggingConfiguration, fs *pflag.FlagSet) {
|
||||
"logtostderr", "one_output", "skip_headers", "skip_log_headers", "stderrthreshold":
|
||||
pf := pflag.PFlagFromGoFlag(f)
|
||||
pf.Deprecated = "this flag may be removed in the future"
|
||||
pf.Hidden = true
|
||||
fs.AddFlag(pf)
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user