virt-install: Add auto complete support for the general options

With this patchset, the general options completion is available. ex:

$ virt-install -<TAB><TAB>
...
--arch      --check     --cpu       --dry-run   -h
--autostart --clock     --cputune   --events    --help
...

$ virt-install --a<TAB><TAB>
--arch       --autostart

Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
Lin Ma 2018-12-07 16:28:49 +08:00 committed by Cole Robinson
parent d68f0f8867
commit f6076a0eb0

View File

@ -864,6 +864,8 @@ def parse_args():
cli.add_misc_options(misc, prompt=True, printxml=True, printstep=True,
noreboot=True, dryrun=True, noautoconsole=True)
cli.autocomplete(parser)
return parser.parse_args()