summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2015-03-11 11:03:36 (GMT)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2015-03-11 11:10:39 (GMT)
commita3582aff073f7fbb5dd2651a08968a5d38dfdc67 (patch)
tree8b27189e08ce1c32868a2c0c11fb9d8dd05a5d1e
parent42dcece7bcb1f06d39e07f8a2f066792369e4b7a (diff)
downloadlqa-for-next.tar.gz
lqa-for-next.tar.xz
cli: Use multiple -p arguments rather than a list of profiles.for-next
Switch -p to an argument that can be given multiple times instead, each with one profile value. This solves a problem when -p is passed before job templates list. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
-rw-r--r--lqa_tool/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lqa_tool/__init__.py b/lqa_tool/__init__.py
index f2c890c..d2b13bb 100644
--- a/lqa_tool/__init__.py
+++ b/lqa_tool/__init__.py
@@ -135,8 +135,9 @@ See 'lqa <command> -h' to read about a specific subcommand.
help="set profile file")
parser.add_argument('-n', '--dry-run', action='store_true',
help="Dry-run, do everyting apart from submitting")
- parser.add_argument('-p', '--profile', nargs='+', type=str,
- help="specify the profiles to use")
+ parser.add_argument('-p', '--profile', action='append', type=str,
+ help="specify the profiles to use "
+ "(can be given multiple times)")
parser.add_argument('--all-profiles', action='store_true',
help="process all the available profiles")
parser.add_argument('-t', '--template-vars', action='append', type=str,