Fix unified flag in --logging-format description

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy 2021-01-28 19:49:00 +08:00
parent 9f2f1b8c46
commit 716865c7de

View File

@ -117,7 +117,7 @@ func unsupportedLoggingFlags() []string {
klog.InitFlags(fs)
fs.VisitAll(func(flag *flag.Flag) {
if _, found := supportedLogsFlags[flag.Name]; !found {
allFlags = append(allFlags, flag.Name)
allFlags = append(allFlags, strings.Replace(flag.Name, "_", "-", -1))
}
})