Actions
Bug #53935
closed[cli] fix mixing switches and positional arguments
% Done:
0%
Source:
Tags:
Backport:
octopus,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
Currently this
$ rbd --all children img
doesn't work, while this
$ rbd children --all img
or this
$ rbd children img --all
does. The issue is that -a/--all isn't on the list of known switch arguments. The "rbd children" example may seem contrived but for more complicated commands such as "rbd device map" mixing switches and positional arguments occurs naturally:
$ rbd device --device-type nbd --options try-netlink --show-cookie map img
This shows up as rbd-nbd.sh failures on cookie-enabled kernels:
Actions