From 62ee2f3e192a868087f8fc9fd949005aa27add72 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 17 Jan 2024 23:23:58 +0100 Subject: Option to generate reserve sets --- pysquaredeal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pysquaredeal.py') diff --git a/pysquaredeal.py b/pysquaredeal.py index ccfc23a..7630772 100644 --- a/pysquaredeal.py +++ b/pysquaredeal.py @@ -33,6 +33,7 @@ argparser_publish = subparsers.add_parser('publish', help='mark SQD as published argparser_generate = subparsers.add_parser('generate', help='generate PBN') argparser_generate.add_argument('phase', nargs='?', type=int, metavar='PHASE', help='phase number, if empty, all phases will be generated') argparser_generate.add_argument('session', nargs='?', type=int, metavar='SESSION', help='session number, if empty, all sessions will be generated') +argparser_generate.add_argument('--reserve', action='store_true', help='generate reserve board set') arguments = argparser.parse_args() @@ -79,4 +80,4 @@ elif arguments.command == 'generate': sd.fromfile(arguments.sqd_file, sqkpath=arguments.sqk_file) if not sd.published: raise SquareDealError('Cannot generate PBN files: event info is not marked as published') - sd.generate(arguments.phase, arguments.session) + sd.generate(arguments.phase, arguments.session, reserve=arguments.reserve) -- cgit v1.2.3