summaryrefslogtreecommitdiff
path: root/pysquaredeal.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-01-17 23:23:58 +0100
committeremkael <emkael@tlen.pl>2024-01-17 23:23:58 +0100
commit62ee2f3e192a868087f8fc9fd949005aa27add72 (patch)
treeafa913ca130e9177b7ba6eda3716f6a4db77c0a1 /pysquaredeal.py
parent1c4d342e281ab8641486d42d4a916cc2c47c8671 (diff)
Option to generate reserve sets
Diffstat (limited to 'pysquaredeal.py')
-rw-r--r--pysquaredeal.py3
1 files changed, 2 insertions, 1 deletions
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)