projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51df2c4
)
hot help for config command in ctdlsh
author
Art Cancro
<ajc@citadel.org>
Wed, 17 Aug 2016 17:52:37 +0000
(13:52 -0400)
committer
Art Cancro
<ajc@citadel.org>
Wed, 17 Aug 2016 17:52:37 +0000
(13:52 -0400)
ctdlsh/config.c
patch
|
blob
|
history
diff --git
a/ctdlsh/config.c
b/ctdlsh/config.c
index 47c5d9a55b11413da45834a3219391d277f73dba..f8e68671cdaafd58f40755a4c6b7257117ab14fd 100644
(file)
--- 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);
}
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);
char *v = strchr(k, ' ');
if (v == NULL) {
return show_single_config(server_socket, k);