Print generic help. */
| 619 | |
| 620 | /* Print generic help. */ |
| 621 | static 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. */ |
| 641 | static void cliOutputHelp(int argc, char **argv) { |
no test coverage detected