MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / cliOutputGenericHelp

Function cliOutputGenericHelp

src/redis-cli.c:428–445  ·  view source on GitHub ↗

Print generic help. */

Source from the content-addressed store, hash-verified

426
427/* Print generic help. */
428static void cliOutputGenericHelp(void) {
429 sds version = cliVersion();
430 printf(
431 "keydb-cli %s\n"
432 "To get help about Redis commands type:\n"
433 " \"help @<group>\" to get a list of commands in <group>\n"
434 " \"help <command>\" for help on <command>\n"
435 " \"help <tab>\" to get a list of possible help topics\n"
436 " \"quit\" to exit\n"
437 "\n"
438 "To set keydb-cli preferences:\n"
439 " \":set hints\" enable online hints\n"
440 " \":set nohints\" disable online hints\n"
441 "Set your preferences in ~/.redisclirc\n",
442 version
443 );
444 sdsfree(version);
445}
446
447/* Output all command help, filtering by group or command name. */
448static void cliOutputHelp(int argc, char **argv) {

Callers 1

cliOutputHelpFunction · 0.85

Calls 2

cliVersionFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected