[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xl: tidy up around global '-v' option
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1276866569 -3600 # Node ID 96c2178bd4488bc456b04193d8a7c1a62553343e # Parent c4216fa31a8e74eb142ac1a017cb0d67e63eebbb xl: tidy up around global '-v' option Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> --- tools/libxl/xl.c | 2 +- tools/libxl/xl_cmdimpl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -r c4216fa31a8e -r 96c2178bd448 tools/libxl/xl.c --- a/tools/libxl/xl.c Fri Jun 18 14:09:14 2010 +0100 +++ b/tools/libxl/xl.c Fri Jun 18 14:09:29 2010 +0100 @@ -74,7 +74,7 @@ int main(int argc, char **argv) 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 c4216fa31a8e -r 96c2178bd448 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Jun 18 14:09:14 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Jun 18 14:09:29 2010 +0100 @@ -1285,7 +1285,7 @@ void help(char *command) struct cmd_spec *cmd; if (!command || !strcmp(command, "help")) { - printf("Usage xl <subcommand> [args]\n\n"); + printf("Usage xl [-v] <subcommand> [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 @@ void help(char *command) } 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); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |