Revert "fix: typo in log.colors flag"
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This reverts commit ff1c039599.
This commit is contained in:
Marvin Preuss 2021-10-20 17:06:42 +02:00
parent d1b42144ff
commit 3b4b62c0db

View File

@ -269,7 +269,7 @@ func init() { //nolint:gochecknoinits,funlen
viper.SetDefault("log.json", false)
// 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 {
log.Fatal().Err(err).Msg("could not bind flag")