canonical / canonical/cloud-init
CLI parameter supparsers do not accept trailing options: cloud-init devel hotplug-hook query does not accept a trailing -s or --subsystem parmeter on the CLI
Open
bug
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
# Bug report
On the CLI, the required --subsystem parameter cannot be passed after the Hotplug Action (query or handle)
```
# when --subsystem (-s) is before query things work
root@test-n:~# cloud-init devel hotplug-hook -s net query
disabled
# when --subsystem (-s) is after query our CLI is unhappy
root@test-n:~# cloud-init devel hotplug-hook query -s net
usage: /usr/bin/cloud-init devel hotplug-hook [-h] -s {net} {query,handle} ...
/usr/bin/cloud-init devel hotplug-hook: error: the following arguments are required: -s/--subsystem
root@test-n:~#
```
Contributor guide
Assessment
This issue has not been assessed yet.