[virt-tools-list] [virt-manager] [PATCH v2 03/10] virt-install: Add	auto complete support for the general options
    Lin Ma 
    lma at suse.com
       
    Fri Dec  7 08:28:49 UTC 2018
    
    
  
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 at suse.com>
---
 virt-install | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/virt-install b/virt-install
index 4e16d4c8..6881c11d 100755
--- a/virt-install
+++ b/virt-install
@@ -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()
 
 
-- 
2.16.2
    
    
More information about the virt-tools-list
mailing list