]> git.sur5r.net Git - bacula/bacula/commitdiff
When using .help item=, we display only usage part
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 30 Oct 2009 13:43:26 +0000 (14:43 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 1 Nov 2009 22:33:58 +0000 (23:33 +0100)
bacula/src/dird/ua_cmds.c

index 67a73088adb808110169ae842c1a282f7fc2c6a4..0d970b9741f6aa9d0f1bcd1818dca952b61e7aba 100644 (file)
@@ -1907,7 +1907,7 @@ int qhelp_cmd(UAContext *ua, const char *cmd)
    if (j >= 0 && ua->argk[j]) {
       for (i=0; i<comsize; i++) {
          if (bstrcmp(commands[i].key, ua->argv[j])) {
-            ua->send_msg("%s\n", _(commands[i].help));
+            ua->send_msg("%s\n", commands[i].usage);
             break;
          }
       }
@@ -1915,7 +1915,7 @@ int qhelp_cmd(UAContext *ua, const char *cmd)
    }
    /* Want to display everything */
    for (i=0; i<comsize; i++) {
-      ua->send_msg("%s %s\n", commands[i].key, _(commands[i].help));
+      ua->send_msg("%s %s -- %s\n", commands[i].key, commands[i].help, commands[i].usage);
    }
    return 1;
 }