Add a suggestive error reply. * This function is typically invoked by from commands that support * subcommands in response to an unknown subcommand or argument error. */
| 1085 | * This function is typically invoked by from commands that support |
| 1086 | * subcommands in response to an unknown subcommand or argument error. */ |
| 1087 | void addReplySubcommandSyntaxError(client *c) { |
| 1088 | sds cmd = sdsnew((char*) ptrFromObj(c->argv[0])); |
| 1089 | sdstoupper(cmd); |
| 1090 | addReplyErrorFormat(c, |
| 1091 | "Unknown subcommand or wrong number of arguments for '%s'. Try %s HELP.", |
| 1092 | (char*)ptrFromObj(c->argv[1]),cmd); |
| 1093 | sdsfree(cmd); |
| 1094 | } |
| 1095 | |
| 1096 | /* Append 'src' client output buffers into 'dst' client output buffers. |
| 1097 | * This function clears the output buffers of 'src' */ |
no test coverage detected