The patch makes --qemu-commandline subprops completion works.
Signed-off-by: Lin Ma <[email protected]>
---
virtinst/cli.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 21586b19..3ba81861 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -494,7 +494,8 @@ def autocomplete(parser):
import argcomplete
- parsernames = ["--" + pclass.cli_arg_name for pclass in VIRT_PARSERS]
+ parsernames = ["--" + pclass.cli_arg_name.replace("_", "-")
+ for pclass in VIRT_PARSERS]
# pylint: disable=protected-access
for action in parser._actions:
for opt in action.option_strings:
--
2.19.0
_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list