[virt-tools-list] [virt-manager] [RFC PATCH 6/9] virt-convert: Add auto complete support for the general options
Lin Ma
lma at suse.com
Wed Nov 14 08:12:55 UTC 2018
Signed-off-by: Lin Ma <lma at suse.com>
---
virt-convert | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/virt-convert b/virt-convert
index 1b7b7963..204481e1 100755
--- a/virt-convert
+++ b/virt-convert
@@ -12,6 +12,8 @@
import sys
+import argcomplete
+
from virtinst import cli
from virtinst import Installer
from virtinst.cli import fail, print_stderr, print_stdout
@@ -67,6 +69,8 @@ def parse_args():
misc = parser.add_argument_group("Miscellaneous Options")
cli.add_misc_options(misc, dryrun=True, printxml=True, noautoconsole=True)
+ argcomplete.autocomplete(parser, validator=cli.completer_validator)
+
options = parser.parse_args()
options.input = options.input[0]
--
2.19.0
More information about the virt-tools-list
mailing list