summaryrefslogtreecommitdiff
path: root/quick_lineup.py
blob: 237bc19529b9fba03005c5963db60f81c48167e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import sys
from ql.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

try:
    Console(round, segment, table).run()
except:
    print('ERROR: %s' % sys.exc_info()[1])