[virt-tools-list] [virt-manager] [RFC PATCH 4/9] virt-clone: Add auto complete support for the general options
Lin Ma
lma at suse.com
Wed Nov 14 08:12:53 UTC 2018
Signed-off-by: Lin Ma <lma at suse.com>
---
virt-clone | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virt-clone b/virt-clone
index d1eedeea..7b805aa5 100755
--- a/virt-clone
+++ b/virt-clone
@@ -7,6 +7,7 @@
import argparse
+import argcomplete
import logging
import sys
@@ -138,6 +139,8 @@ def parse_args():
cli.add_misc_options(misc, prompt=True, replace=True, printxml=True)
+ argcomplete.autocomplete(parser, validator=cli.completer_validator)
+
return parser.parse_args()
--
2.19.0
More information about the virt-tools-list
mailing list