Eric Blake 2b172a8eff virsh: allow alias to expand to opt=value pair
We want to treat 'attach-disk --shareable' as an undocumented
alias for 'attach-disk --mode=shareable'.  By improving our
alias handling, we can allow all such --bool -> --opt=value
replacements, and guarantee up front that the alias is not
mixed with its replacement.

* tools/virsh.c (vshCmddefOptParse, vshCmddefGetOption): Add
support for expanding bool alias to --opt=value.
(opts_echo): Add another alias to test it.
* tests/virshtest.c (mymain): Test it.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-10-24 11:17:41 +01:00
..
2012-04-02 09:33:54 -06:00
2013-10-14 14:34:37 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-07-29 13:09:39 -06:00
2013-10-08 12:39:30 +01:00
2013-03-19 13:13:28 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-14 10:31:01 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00