hot help for config command in ctdlsh
authorArt Cancro <ajc@citadel.org>
Wed, 17 Aug 2016 17:52:37 +0000 (13:52 -0400)
committerArt Cancro <ajc@citadel.org>
Wed, 17 Aug 2016 17:52:37 +0000 (13:52 -0400)
ctdlsh/config.c

index 47c5d9a..f8e6867 100644 (file)
@@ -80,6 +80,14 @@ int cmd_config(int server_socket, char *cmdbuf) {
                return show_full_config(server_socket);
        }
 
+       if (k[0] == '?') {
+               printf("config                 Print values of all configuration keys\n");
+               printf("config ?               Display this message\n");
+               printf("config [key]           Print value of configuration key 'key'\n");
+               printf("config [key] [value]   Set configuration key 'key' to 'value'\n");
+               return(cmdret_ok);
+       }
+
        char *v = strchr(k, ' ');
        if (v == NULL) {
                return show_single_config(server_socket, k);