CLI: Fix config flag being ignored

Passing --config had no effect when passed.  It will now be applied as
the last config file and before any env var overrrides.
This commit is contained in:
Jason Wilder
2015-02-15 14:57:49 -07:00
parent 9223c95481
commit b6428b08d0
8 changed files with 31 additions and 38 deletions

View File

@ -39,8 +39,7 @@ func main() {
app.Flags = append(app.Flags, []cli.Flag{
cli.StringFlag{
Name: "config",
Value: "grafana.ini",
Usage: "path to config file",
Usage: "path to grafana.ini config file",
},
}...)
app.Run(os.Args)