1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00

check parsed flags

This commit is contained in:
Harvey Kandola 2017-07-20 10:48:27 +01:00
parent 68130122e7
commit 763bd1f0e2

View file

@ -52,8 +52,13 @@ func init() {
runtime.Product.License.Trial = false runtime.Product.License.Trial = false
runtime.Product.License.Edition = "Community" runtime.Product.License.Edition = "Community"
// parse settings from command line and environment
runtime.Flags = env.ParseFlags() runtime.Flags = env.ParseFlags()
flagPrep(&runtime) flagsOK := flagPrep(&runtime)
if flagsOK {
// runtime.Log = runtime.Log.SetDB(runtime.Db)
}
// temp code repair // temp code repair
api.Runtime = runtime api.Runtime = runtime