]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added ability to do "command ?"
authorAlan T. DeKok <aland@freeradius.org>
Wed, 6 May 2009 14:55:13 +0000 (16:55 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 6 May 2009 14:55:50 +0000 (16:55 +0200)
this shows the help for the command.

src/main/command.c

index 50843b245e4e23f856b15fd7878115cd6d6a0a8f..f8fe86e577963c8e034faa7ac7bd699bdfac0b66 100644 (file)
@@ -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;