X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=ctdlsh%2Fconfig.c;fp=ctdlsh%2Fconfig.c;h=f8e68671cdaafd58f40755a4c6b7257117ab14fd;hp=47c5d9a55b11413da45834a3219391d277f73dba;hb=675f650fc3b919f398c4d0c5a5ce686c56e9771c;hpb=51df2c4034fe9f5db4254c4ebe1e54c0665e00a4 diff --git a/ctdlsh/config.c b/ctdlsh/config.c index 47c5d9a55..f8e68671c 100644 --- a/ctdlsh/config.c +++ b/ctdlsh/config.c @@ -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);