diff -r 98d50e17a1df tools/libxl/xl.c --- a/tools/libxl/xl.c Thu Jun 17 16:53:52 2010 +0100 +++ b/tools/libxl/xl.c Thu Jun 17 16:55:38 2010 +0100 @@ -74,7 +74,7 @@ if (cspec) return cspec->cmd_impl(argc, argv); else if (!strcmp(cmd, "help")) { - help(argv[2]); + help(argv[optind]); exit(0); } else { fprintf(stderr, "command not implemented\n"); diff -r 98d50e17a1df tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Jun 17 16:53:52 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Thu Jun 17 16:55:38 2010 +0100 @@ -1285,7 +1285,7 @@ struct cmd_spec *cmd; if (!command || !strcmp(command, "help")) { - printf("Usage xl [args]\n\n"); + printf("Usage xl [-v] [args]\n\n"); printf("xl full list of subcommands:\n\n"); for (i = 0; i < cmdtable_len; i++) printf(" %-20s%s\n", @@ -1293,7 +1293,7 @@ } else { cmd = cmdtable_lookup(command); if (cmd) { - printf("Usage: xl %s %s\n\n%s.\n\n", + printf("Usage: xl [-v] %s %s\n\n%s.\n\n", cmd->cmd_name, cmd->cmd_usage, cmd->cmd_desc);