fix: typo in log.colors flag

This commit is contained in:
Marvin Preuss 2021-10-20 14:38:31 +02:00
parent b623bcefcb
commit ff1c039599

View File

@ -269,7 +269,7 @@ func init() { //nolint:gochecknoinits,funlen
viper.SetDefault("log.json", false) viper.SetDefault("log.json", false)
// Log.Colors. // Log.Colors.
rootCmd.PersistentFlags().Bool("log-colors", true, "colorful log output") rootCmd.PersistentFlags().Bool("log.colors", true, "colorful log output")
if err := viper.BindPFlag("log.colors", rootCmd.PersistentFlags().Lookup("log-colors")); err != nil { if err := viper.BindPFlag("log.colors", rootCmd.PersistentFlags().Lookup("log-colors")); err != nil {
log.Fatal().Err(err).Msg("could not bind flag") log.Fatal().Err(err).Msg("could not bind flag")