From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Wilson Subject: [PATCH] xl: rename "list-vm" command to "vm-list" Date: Thu, 28 Jun 2012 06:46:18 +0000 Message-ID: <34e47ba2612efdf0b2d6.1340865978@kaos-source-31003.sea31.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org All of the other "list" verbs are of the form "$noun-list". For example: "pci-list", "vcpu-list", "network-list", "block-list", etc. Additionally, many people have well trained muscle memory from years of typing "xm li". "xl li" was ambiguous due to "xl list-vm" resulted in "command not implemented". Signed-off-by: Matt Wilson diff -r 32034d1914a6 -r 34e47ba2612e tools/libxl/xl.h --- a/tools/libxl/xl.h Thu Jun 07 19:46:57 2012 +0100 +++ b/tools/libxl/xl.h Thu Jun 28 06:34:26 2012 +0000 @@ -54,7 +54,7 @@ int main_destroy(int argc, char **argv); int main_shutdown(int argc, char **argv); int main_reboot(int argc, char **argv); int main_list(int argc, char **argv); -int main_list_vm(int argc, char **argv); +int main_vm_list(int argc, char **argv); int main_create(int argc, char **argv); int main_config_update(int argc, char **argv); int main_button_press(int argc, char **argv); diff -r 32034d1914a6 -r 34e47ba2612e tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Jun 07 19:46:57 2012 +0100 +++ b/tools/libxl/xl_cmdimpl.c Thu Jun 28 06:34:26 2012 +0000 @@ -3623,11 +3623,11 @@ int main_list(int argc, char **argv) return 0; } -int main_list_vm(int argc, char **argv) +int main_vm_list(int argc, char **argv) { int opt; - if ((opt = def_getopt(argc, argv, "", "list-vm", 0)) != -1) + if ((opt = def_getopt(argc, argv, "", "vm-list", 0)) != -1) return opt; list_vm(); diff -r 32034d1914a6 -r 34e47ba2612e tools/libxl/xl_cmdtable.c --- a/tools/libxl/xl_cmdtable.c Thu Jun 07 19:46:57 2012 +0100 +++ b/tools/libxl/xl_cmdtable.c Thu Jun 28 06:34:26 2012 +0000 @@ -214,9 +214,9 @@ struct cmd_spec cmd_table[] = { "Set the number of active VCPUs allowed for the domain", " ", }, - { "list-vm", - &main_list_vm, 0, 0, - "List the VMs,without DOM0", + { "vm-list", + &main_vm_list, 0, 0, + "List the VMs, without DOM0", "", }, { "info",