|
|
@ -28,6 +28,7 @@ func main() { |
|
|
|
log.Infoln(getVersion()) |
|
|
|
log.Infoln(getVersion()) |
|
|
|
|
|
|
|
|
|
|
|
configFile := flag.String("configFile", "config.yaml", "Config File full path. Defaults to current folder") |
|
|
|
configFile := flag.String("configFile", "config.yaml", "Config File full path. Defaults to current folder") |
|
|
|
|
|
|
|
chatDbFile := flag.String("chatDatabase", "", "Path to the chat database file.") |
|
|
|
enableDebugOptions := flag.Bool("enableDebugFeatures", false, "Enable additional debugging options.") |
|
|
|
enableDebugOptions := flag.Bool("enableDebugFeatures", false, "Enable additional debugging options.") |
|
|
|
enableVerboseLogging := flag.Bool("enableVerboseLogging", false, "Enable additional logging.") |
|
|
|
enableVerboseLogging := flag.Bool("enableVerboseLogging", false, "Enable additional logging.") |
|
|
|
|
|
|
|
|
|
|
@ -48,6 +49,12 @@ func main() { |
|
|
|
} |
|
|
|
} |
|
|
|
config.Config.EnableDebugFeatures = *enableDebugOptions |
|
|
|
config.Config.EnableDebugFeatures = *enableDebugOptions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if *chatDbFile != "" { |
|
|
|
|
|
|
|
config.Config.ChatDatabaseFilePath = *chatDbFile |
|
|
|
|
|
|
|
} else if config.Config.ChatDatabaseFilePath == "" { |
|
|
|
|
|
|
|
config.Config.ChatDatabaseFilePath = "chat.db" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// starts the core
|
|
|
|
// starts the core
|
|
|
|
if err := core.Start(); err != nil { |
|
|
|
if err := core.Start(); err != nil { |
|
|
|
log.Error("failed to start the core package") |
|
|
|
log.Error("failed to start the core package") |
|
|
|