[virt-tools-list] [virt-manager] [RFC PATCH 5/9] virt-xml: Add auto complete support for the general options
Lin Ma
lma at suse.com
Wed Nov 14 08:12:54 UTC 2018
Signed-off-by: Lin Ma <lma at suse.com>
---
virt-xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/virt-xml b/virt-xml
index 39abd297..4a70206f 100755
--- a/virt-xml
+++ b/virt-xml
@@ -12,6 +12,8 @@ import os
import re
import sys
+import argcomplete
+
import libvirt
import virtinst
@@ -393,6 +395,8 @@ def parse_args():
misc = parser.add_argument_group(_("Miscellaneous Options"))
cli.add_misc_options(misc, prompt=False, printxml=False, dryrun=False)
+ argcomplete.autocomplete(parser, validator=cli.completer_validator)
+
return parser.parse_args()
--
2.19.0
More information about the virt-tools-list
mailing list