From: Alan T. DeKok Date: Wed, 6 May 2009 14:55:13 +0000 (+0200) Subject: Added ability to do "command ?" X-Git-Tag: release_2_1_7~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5541fc1dd6072a633da28f13cdc96b2d15b385bc;p=thirdparty%2Ffreeradius-server.git Added ability to do "command ?" this shows the help for the command. --- diff --git a/src/main/command.c b/src/main/command.c index 50843b245e4..f8fe86e5779 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -2010,6 +2010,8 @@ static int command_domain_recv(rad_listen_t *listener, goto retry; } + if ((argc == 2) && (strcmp(argv[1], "?") == 0)) goto do_help; + if (!table[i].func) { cprintf(listener, "ERROR: Invalid command\n"); goto do_next;