From 2371a6c91b905abf5a15ad752872da6c3beb41c1 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Mon, 25 Jan 2021 21:16:17 +0100 Subject: [PATCH] Support slash notation in "osc creq -a args" Most osc commands support slash notation for the specification of a project package pair. That is, "osc prj/pkg" has the same semantics as "osc prj pkg" (in most cases). For consistency reasons, "osc creq" should also support the slash notation for the action type's arguments. That is, for instance, "osc creq -a submit src_prj/src_pkg dst_prj/dst_pkg" should have the same effect as "osc creq -a submit src_prj src_pkg dst_prj dst_pkg". Proposed-by: darix --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 67c342aa..10c41e21 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1506,7 +1506,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. parser.values.actions.append(value[0]) del value[0] - parser.values.actiondata.append(value) + parser.values.actiondata.append(slash_split(value)) def _submit_request(self, args, opts, options_block): actionxml = ""