13 lines
518 B
Diff
13 lines
518 B
Diff
diff --git a/cmd/main.go b/cmd/main.go
|
|
index 7251bd09a3..e83732bc52 100644
|
|
--- a/cmd/main.go
|
|
+++ b/cmd/main.go
|
|
@@ -104,6 +104,7 @@ func prepareWorkPathAndCustomConf(action cli.ActionFunc) func(ctx *cli.Context)
|
|
}
|
|
}
|
|
setting.InitWorkPathAndCommonConfig(os.Getenv, args)
|
|
+ setting.EnvironmentToConfig(setting.CfgProvider, os.Environ()) // Add config from env
|
|
if ctx.Bool("help") || action == nil {
|
|
// the default behavior of "urfave/cli": "nil action" means "show help"
|
|
return cmdHelp().Action(ctx)
|