MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cliOutputGenericHelp

Function cliOutputGenericHelp

app/redis-6.2.6/src/redis-cli.c:621–638  ·  view source on GitHub ↗

Print generic help. */

Source from the content-addressed store, hash-verified

619
620/* Print generic help. */
621static void cliOutputGenericHelp(void) {
622 sds version = cliVersion();
623 printf(
624 "redis-cli %s\n"
625 "To get help about Redis commands type:\n"
626 " \"help @<group>\" to get a list of commands in <group>\n"
627 " \"help <command>\" for help on <command>\n"
628 " \"help <tab>\" to get a list of possible help topics\n"
629 " \"quit\" to exit\n"
630 "\n"
631 "To set redis-cli preferences:\n"
632 " \":set hints\" enable online hints\n"
633 " \":set nohints\" disable online hints\n"
634 "Set your preferences in ~/.redisclirc\n",
635 version
636 );
637 sdsfree(version);
638}
639
640/* Output all command help, filtering by group or command name. */
641static void cliOutputHelp(int argc, char **argv) {

Callers 1

cliOutputHelpFunction · 0.85

Calls 3

cliVersionFunction · 0.85
sdsfreeFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected