summaryrefslogtreecommitdiff
path: root/quick_lineup.py
diff options
context:
space:
mode:
Diffstat (limited to 'quick_lineup.py')
-rw-r--r--quick_lineup.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/quick_lineup.py b/quick_lineup.py
new file mode 100644
index 0000000..7da857f
--- /dev/null
+++ b/quick_lineup.py
@@ -0,0 +1,27 @@
+import argparse
+import sys
+from ql.console import Console
+
+
+def main():
+ parser = argparse.ArgumentParser(
+ description='Interface for line-up management in JFR Teamy')
+
+ parser.add_argument('round', metavar='ROUND', type=int,
+ help='round number')
+ parser.add_argument('segment', metavar='SEGMENT', type=int,
+ help='segment number')
+ parser.add_argument('table', metavar='TABLE', type=int,
+ nargs='?', default=None,
+ help='table to start from')
+
+ arguments = parser.parse_args()
+
+ try:
+ Console(arguments.round, arguments.segment, arguments.table).run()
+ except:
+ print('ERROR: %s' % sys.exc_info()[1])
+
+
+if __name__ == '__main__':
+ main()