diff --git a/src/server/server_family.cc b/src/server/server_family.cc index bd05b22aa..9013d6740 100644 --- a/src/server/server_family.cc +++ b/src/server/server_family.cc @@ -1476,6 +1476,23 @@ void ServerFamily::Config(CmdArgList args, ConnectionContext* cntx) { ToUpper(&args[0]); string_view sub_cmd = ArgS(args, 0); + if (sub_cmd == "HELP") { + string_view help_arr[] = { + "CONFIG [ [value] [opt] ...]. Subcommands are:", + "GET ", + " Return parameters matching the glob-like and their values.", + "SET ", + " Set the configuration to .", + "RESETSTAT", + " Reset statistics reported by the INFO command.", + "HELP", + " Prints this help.", + }; + + auto* rb = static_cast(cntx->reply_builder()); + return rb->SendSimpleStrArr(help_arr); + } + if (sub_cmd == "SET") { if (args.size() != 3) { return cntx->SendError(WrongNumArgsError("config|set"));