fix program flags

This commit is contained in:
David Christofas
2020-04-21 10:58:27 +02:00
parent 3d26974593
commit 0b757c8713
9 changed files with 133 additions and 51 deletions
+2
View File
@@ -27,12 +27,14 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.BoolFlag{
Name: "log-pretty",
Value: true,
Usage: "Enable pretty logging",
EnvVars: []string{"THUMBNAILS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Name: "log-color",
Value: true,
Usage: "Enable colored logging",
EnvVars: []string{"THUMBNAILS_LOG_COLOR"},
Destination: &cfg.Log.Color,