From 6daa4d3776b9a64a6276f96fd21bb1152c9aec5f Mon Sep 17 00:00:00 2001 From: Merlin Mathesius Date: Mon, 25 Feb 2019 12:19:19 -0600 Subject: [PATCH] Revise command line parsing for local module builds to require SRPMs to be specified individually using multiple '--srpm SRPM' options. Signed-off-by: Merlin Mathesius --- module_build_service/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_build_service/manage.py b/module_build_service/manage.py index 7e609800..ec816daa 100755 --- a/module_build_service/manage.py +++ b/module_build_service/manage.py @@ -102,7 +102,7 @@ def import_module(mmd_file): @manager.option('--stream', action='store', dest="stream") @manager.option('--file', action='store', dest="yaml_file") -@manager.option('--srpms', '--srpm', nargs='*', action='store', default=[], dest="srpms") +@manager.option('--srpm', action='append', default=[], dest="srpms", metavar='SRPM') @manager.option('--skiptests', action='store_true', dest="skiptests") @manager.option('-l', '--add-local-build', action='append', default=None, dest='local_build_nsvs') @manager.option('-s', '--set-stream', action='append', default=[], dest='default_streams')