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:
Updated by Ilya Dryomov over 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot over 2 years ago
- Copied to Backport #53981: pacific: [cli] fix mixing switches and positional arguments added
Updated by Backport Bot over 2 years ago
- Copied to Backport #53982: octopus: [cli] fix mixing switches and positional arguments added
Updated by Ilya Dryomov almost 2 years ago
- Status changed from Pending Backport to Resolved
Actions