Merge pull request #98524 from chymy/comp-base-flag-0128

Fix unified flag in --logging-format description
This commit is contained in:
Kubernetes Prow Robot 2021-02-05 03:38:51 -08:00 committed by GitHub
commit 2b90d509b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
}
})