Re: [PATCH 1/7] kvm tools: Print version when running 'kvm --version'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 12, 2011 at 06:20:54PM +0300, Sasha Levin wrote:
>Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
>---
> tools/kvm/kvm-cmd.c |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
>diff --git a/tools/kvm/kvm-cmd.c b/tools/kvm/kvm-cmd.c
>index e85f22f..3a90d6d 100644
>--- a/tools/kvm/kvm-cmd.c
>+++ b/tools/kvm/kvm-cmd.c
>@@ -24,6 +24,7 @@ struct cmd_struct kvm_commands[] = {
> 	{ "balloon",	kvm_cmd_balloon,	NULL,         0 },
> 	{ "list",	kvm_cmd_list,		NULL,         0 },
> 	{ "version",	kvm_cmd_version,	NULL,         0 },
>+	{ "--version",	kvm_cmd_version,	NULL,         0 },
Although it works, I think it's not good way to implement a option
as a command.

walimis
> 	{ "stop",	kvm_cmd_stop,		NULL,         0 },
> 	{ "help",	kvm_cmd_help,		NULL,         0 },
> 	{ "run",	kvm_cmd_run,		kvm_run_help, 0 },
>-- 
>1.7.6
>
>--
>To unsubscribe from this list: send the line "unsubscribe kvm" in
>the body of a message to majordomo@xxxxxxxxxxxxxxx
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux