Eric Blake
1c56b9fe53
virsh: add option aliases
...
In the past, we have created some virsh options with less-than-stellar
names. For back-compat reasons, those names must continue to parse,
but we don't want to document them in help output. This introduces
a new option type, an alias, which points to a canonical option name
later in the option list.
I'm actually quite impressed that our code has already been factored
to do all option parsing through common entry points, such that I
got this added in relatively few lines of code!
* tools/virsh.c (VSH_OT_ALIAS): New option type.
(opts_echo): Hook up an alias, for easy testing.
(vshCmddefOptParse, vshCmddefHelp, vshCmddefGetOption): Allow for
aliases.
* tools/virsh.pod (NOTES): Document promise of back-compat.
* tests/virshtest.c (mymain): Test new feature.
2012-03-07 18:24:44 -07:00
..
2011-07-07 17:49:21 -06:00
2011-12-03 15:55:46 -07:00
2010-12-17 11:57:11 -07:00
2012-01-27 16:51:49 +01:00
2012-03-07 18:24:43 -07:00
2011-09-05 07:03:04 -06:00
2012-03-07 18:24:43 -07:00
2010-01-19 21:13:03 +01:00
2012-02-01 17:02:45 -07:00
2012-01-11 13:10:21 -07:00
2012-01-11 13:10:21 -07:00
2009-12-14 14:58:23 +01:00
2011-12-08 08:39:26 -05:00
2012-01-11 06:42:37 -05:00
2012-01-11 06:42:37 -05:00
2011-12-05 13:02:54 +01:00
2012-03-07 18:24:44 -07:00
2012-03-07 18:24:44 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2010-08-19 15:58:43 -06:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-11-30 10:12:30 +00:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2011-05-03 08:03:39 -06:00
2010-01-15 16:28:05 +00:00
2012-02-03 10:41:46 -07:00
2012-02-03 10:02:34 -07:00
2011-04-30 19:59:52 +02:00
2010-05-12 08:41:10 +02:00
2012-02-06 09:35:47 +01:00
2010-11-03 11:43:11 +01:00
2012-03-07 18:24:43 -07:00
2010-07-28 16:47:56 -04:00
2010-05-20 13:50:03 -04:00
2012-02-03 10:41:46 -07:00
2011-12-01 13:49:20 -07:00
2011-04-29 10:21:20 -06:00
2011-07-29 17:17:21 +02:00
2010-01-15 16:28:05 +00:00
2012-02-03 10:41:46 -07:00
2011-06-30 18:04:02 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2012-02-29 15:24:35 +08:00
2010-01-15 16:28:05 +00:00
2012-02-03 10:41:46 -07:00
2012-02-03 10:41:46 -07:00
2010-01-15 16:28:05 +00:00
2012-02-10 12:53:25 +08:00
2012-02-03 10:41:46 -07:00
2010-04-06 11:09:46 -04:00
2012-02-03 10:41:46 -07:00
2011-06-24 08:01:10 -06:00
2011-05-16 10:12:21 -06:00
2012-03-07 18:24:43 -07:00
2011-06-01 11:58:15 +02:00
2011-07-22 15:18:32 +01:00
2012-03-07 18:24:43 -07:00
2012-01-27 08:45:50 -07:00
2012-02-27 16:06:02 -07:00
2012-03-05 23:24:34 -05:00
2012-03-07 18:24:44 -07:00
2012-02-03 10:41:46 -07:00
2012-02-03 10:41:46 -07:00
2010-09-14 08:42:10 -06:00
2010-05-12 08:41:10 +02:00
2011-11-18 15:00:18 -07:00
2011-12-22 13:01:09 -07:00
2012-02-08 11:55:56 +01:00
2012-02-03 10:41:46 -07:00
2011-09-16 15:51:31 -06:00
2011-12-01 13:49:20 -07:00
2011-11-15 10:27:54 +00:00
2011-06-24 11:48:18 +01:00
2010-05-12 08:41:10 +02:00
2011-11-18 15:00:18 -07:00
2010-01-15 16:28:05 +00:00
2012-02-03 10:41:46 -07:00
2010-01-15 16:28:05 +00:00
2012-02-03 10:41:46 -07:00
2010-01-15 16:28:05 +00:00
2011-07-11 09:21:37 -06:00
2012-03-02 06:57:43 -07:00
2012-02-03 10:41:46 -07:00
2012-01-17 11:39:23 +01:00
2009-07-16 15:06:42 +02:00
2011-11-03 12:01:48 +00:00
2009-07-16 15:06:42 +02:00
2011-08-19 09:22:22 -06:00
2011-07-01 16:46:20 -06:00
2010-05-12 08:41:10 +02:00
2011-10-20 16:02:16 -06:00
2012-01-26 14:11:13 +00:00
2012-01-26 14:11:13 +00:00
2011-06-29 10:47:54 +08:00
2011-11-09 17:10:23 +00:00
2012-02-01 16:36:13 -07:00
2010-05-12 08:41:10 +02:00
2011-12-01 14:12:59 -07:00
2011-12-01 14:12:59 -07:00
2010-05-12 08:41:10 +02:00
2012-03-07 18:24:44 -07:00
2011-09-28 15:43:39 +08:00
2011-11-30 11:43:49 +00:00
2012-02-24 11:53:23 +01:00
2012-02-03 10:41:46 -07:00
2012-02-03 10:41:46 -07:00
2012-02-03 10:41:46 -07:00
2012-02-24 11:53:23 +01:00