aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authorJoris2020-05-10 15:55:32 +0200
committerJoris2020-05-10 15:55:32 +0200
commit3e1415c738facb8b0274adb50ae65f218fd59c9b (patch)
treed839857b99d0606dec6ace33ede88c0080c8bad1 /src/main.py
parent45414a031909a360a025048592566e14cd71e5be (diff)
Parse database command line argument
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.py b/src/main.py
index 293ec8d..e791196 100644
--- a/src/main.py
+++ b/src/main.py
@@ -5,8 +5,10 @@ import os.path
import db.init
import gui.window
+import arguments
-database = db.init.init('database')
+args = arguments.parser().parse_args()
+database = db.init.init(args.database if args.database != None else 'database')
app = QtWidgets.QApplication(sys.argv)
# # Allows to catch Ctrl-C event