Print generic help. */
| 426 | |
| 427 | /* Print generic help. */ |
| 428 | static 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. */ |
| 448 | static void cliOutputHelp(int argc, char **argv) { |
no test coverage detected