Files
kvmtool/main.c
T
Amerigo Wang f6677a1dec kvm tools: implement "help xxx" command
'kvm run --help' works fine but 'kvm help run' shows nothing,
this patch implements it.

Acked-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:44 +01:00

15 lines
291 B
C

#include <stdio.h>
/* user defined header files */
#include <kvm/kvm-cmd.h>
static int handle_kvm_command(int argc, char **argv)
{
return handle_command(kvm_commands, argc, (const char **) &argv[0]);
}
int main(int argc, char *argv[])
{
return handle_kvm_command(argc - 1, &argv[1]);
}