WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xl: tidy up around global '-v' option

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xl: tidy up around global '-v' option
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jun 2010 10:45:25 -0700
Delivery-date: Mon, 21 Jun 2010 10:48:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xl: tidy up around global '-v' option, Xen patchbot-unstable <=