defaults to ./config.ini

not the best option but it's at least better
This commit is contained in:
Luclu7 2020-12-24 01:08:32 +01:00 committed by GitHub
parent aed754d74c
commit 20ed884d05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ var DB *sql.DB
//Main loop
func main() {
configPatch := flag.String("config", "extra/config.ini.example", "the patch to the config file") //Get the config patch from --config flag
configPatch := flag.String("config", "config.ini", "the patch to the config file") //Get the config patch from --config flag
sqlMigration := flag.Bool("sqlmigrate", false, "initialize / migrate the database") //Detect if migration asked
flag.Parse()