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
..
2013-10-15 17:02:17 -04:00
2013-05-06 14:01:08 -06:00
2013-09-05 12:31:10 +01:00
2013-04-15 17:35:31 +01:00
2013-04-25 13:05:10 +02:00
2013-05-13 17:24:18 +08:00
2013-10-09 17:44:45 +02:00
2013-10-09 17:44:45 +02:00
2013-09-17 17:47:33 -06:00
2013-09-17 17:47:33 -06:00
2013-09-17 17:47:33 -06:00
2013-08-28 08:05:46 +02:00
2013-08-28 08:05:46 +02:00
2013-06-26 14:10:56 -04:00
2012-05-21 06:26:34 -04:00
2013-10-03 15:52:06 +02:00
2013-09-02 14:45:38 +02:00
2013-08-26 16:09:56 +02:00
2013-10-17 16:02:43 +01:00
2013-08-27 17:42:29 +02:00
2013-09-02 16:53:39 -04:00
2013-08-20 10:46:58 -06:00
2013-05-17 08:33:22 +02:00
2013-10-16 10:15:44 -06:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-08-27 12:45:58 +02:00
2013-07-25 13:26:41 +02:00
2013-07-25 13:26:41 +02:00
2013-10-15 16:59:43 -04:00
2013-09-30 16:58:37 -05:00
2013-10-15 11:39:02 +01:00
2013-10-15 11:39:02 +01:00
2013-08-01 17:04:28 -04:00
2013-07-11 14:18:11 -04:00
2013-10-21 14:03:52 +01:00
2013-08-22 11:38:36 +02:00
2013-10-14 14:34:37 -06:00
2013-10-09 17:44:45 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-07-10 17:40:13 +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-09 17:44:45 +02:00
2013-10-22 15:42:15 +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
2010-04-06 11:09:46 -04:00
2013-10-08 12:39:30 +01:00
2013-04-24 10:59:53 +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 14:34:37 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-14 14:34:37 -06:00
2013-10-08 12:39:30 +01:00
2013-10-21 14:03:52 +01:00
2013-10-01 10:48:47 +02:00
2013-10-17 16:02:43 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-09-17 16:45:53 +02:00
2013-08-23 15:23:44 -06:00
2013-10-07 08:40:30 -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-05-21 09:22:21 -04:00
2013-07-29 13:09:39 -06:00
2013-10-11 11:05:06 +02:00
2013-07-29 13:09:39 -06:00
2013-10-08 12:39:30 +01:00
2013-05-10 08:52:43 -04:00
2013-05-17 08:33:22 +02:00
2013-10-08 12:39:30 +01:00
2013-05-17 08:35:08 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-15 16:59:43 -04:00
2013-07-10 11:07:31 +02:00
2013-09-13 10:25:56 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-04-04 22:42:39 +02:00
2013-09-02 16:53:39 -04:00
2013-05-31 11:35:34 -06:00
2013-04-04 22:42:39 +02:00
2013-04-04 22:42:39 +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-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-22 15:42:19 +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 11:40:24 -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-14 10:31:01 +01:00
2013-10-08 12:39:30 +01:00
2013-09-24 09:37:26 +01:00
2013-10-08 12:39:30 +01:00
2013-10-21 14:03:52 +01:00
2013-10-08 12:39:30 +01:00
2013-08-09 11:54:41 +01:00
2013-08-09 11:54:41 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-08-12 18:47:56 +02:00
2013-09-13 10:25:56 +02:00
2013-10-24 11:17:41 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-09-20 12:38:24 +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
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00