summaryrefslogtreecommitdiff
path: root/ql/__main__.py
diff options
context:
space:
mode:
authorMichal Zimniewicz <michzimny@gmail.com>2016-10-09 11:27:06 +0200
committerMichal Zimniewicz <michzimny@gmail.com>2016-10-09 11:27:06 +0200
commit0a27bbf9ce1f5b1a52bc62ff4d9e5c2f960b030c (patch)
treedf4a562b9e2452bc288264156c1e47bf6fcedeb3 /ql/__main__.py
Initial commit
Diffstat (limited to 'ql/__main__.py')
-rw-r--r--ql/__main__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ql/__main__.py b/ql/__main__.py
new file mode 100644
index 0000000..e79056d
--- /dev/null
+++ b/ql/__main__.py
@@ -0,0 +1,16 @@
+import sys
+from .console import Console
+
+
+if len(sys.argv) < 3 or len(sys.argv) > 4:
+ print('Give correct parameters: round, segment and (optionally) table')
+ sys.exit(1)
+
+round = int(sys.argv[1])
+segment = int(sys.argv[2])
+if len(sys.argv) == 4:
+ table = int(sys.argv[3])
+else:
+ table = None
+
+Console(round, segment, table).run()