Currently the completion script will be available for commands:
VBoxManage and vboxmanage. With this commit, renaming/linking this
script with another name will also make that name to be included to
completion.
For example, with alias:
$ alias vb="VBoxManage"
linkig completion script into new name an source it:
$ cd /path/of/completion/script/
$ ln -s VBoxManage vb
# source vb
will start to complete vb command.
Note, that even if in vboxmanage help there is such command, says
vboxmanage (v7.0.6 at time of writing) refuses to execute it. Perhaps
it's a subject to change in the future.
Starting from 7.x version of VirtualBox, vboxmanage command help gives
its usage with one or more lines per command, like:
VBoxManage command <args> [--option1|--option2] [--option3=optarg ]
There is no need to get it as in old format from now on.
There are currently two ways for specify available commands in
vboxmanage help:
Usage:
VBoxManage [<general option>] <command>
[..]
Commands:
command1 ...
command2 ...
and:
VBoxManage command3 ...
VBoxManage command4 ...
besides the fact how it is annoying for parsing the output (or lack of
having some way for machine readable format for commands), I have
treated the latter as a exception from general rule, but lately it
slowly moving towards the second form. In this patch it is adapted to
also parse second format instead of adding those commands manually.
Also, there was missing parameter added for sharedfolder add command.