From: Eric Bollengier Date: Fri, 30 Oct 2009 13:43:26 +0000 (+0100) Subject: When using .help item=, we display only usage part X-Git-Tag: Release-5.0.0~281^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ddc95fa6165d4537128faf9a896bd49118c3ba3;p=bacula%2Fbacula When using .help item=, we display only usage part --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 67a73088ad..0d970b9741 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1907,7 +1907,7 @@ int qhelp_cmd(UAContext *ua, const char *cmd) if (j >= 0 && ua->argk[j]) { for (i=0; iargv[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; isend_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; }