1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

Support slash notation in "osc creq -a <action type> args"

Most osc commands support slash notation for the specification of
a project package pair. That is, "osc <cmd> prj/pkg" has the same
semantics as "osc <cmd> 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
This commit is contained in:
Marcus Huewe 2021-01-25 21:16:17 +01:00
parent 224ec6eef5
commit 2371a6c91b

View File

@ -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 = ""