diff options
author | MichaĆ Zimniewicz <michzimny@users.noreply.github.com> | 2017-03-01 12:33:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 12:33:04 +0100 |
commit | 3d73e12dca0802392d020095bf58ea1d1330b899 (patch) | |
tree | 66bc18806de28fc4fd29a01b61923bcfe609805d /quick_lineup.py | |
parent | 973d1cd652c8840a8e7c408182cfa79fb7183455 (diff) | |
parent | 5e0200ccaa7df050f1b78c8af7857ac292cbbbb5 (diff) |
Merge pull request #9 from michzimny/pyinstaller0.1
Pyinstaller configuration + successfully compiled binary
Diffstat (limited to 'quick_lineup.py')
-rw-r--r-- | quick_lineup.py | 27 |
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() |