fix the init order

This commit is contained in:
tgic 2014-12-29 22:56:34 +08:00 • committed by Boshi Lian
parent 7b0704d475
commit b926acbb65

View file

@ -27,19 +27,18 @@ func showHelpOrVersion() {
}
if config.ShowVersion {
showVersion()
os.Exit(0)
}
}
func main() {
showHelpOrVersion()
showVersion()
initConfig()
initTemplate()
initLogger()
showVersion()
showHelpOrVersion()
showConfig()
// TODO make this pluggable