From 5ddc95fa6165d4537128faf9a896bd49118c3ba3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 30 Oct 2009 14:43:26 +0100 Subject: [PATCH] When using .help item=, we display only usage part --- bacula/src/dird/ua_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5