From 8eb19cc251ae7bfd5c2fda9d4515b9ddfc5e2476 Mon Sep 17 00:00:00 2001 From: "Meir Shpilraien (Spielrein)" Date: Wed, 2 Feb 2022 15:50:41 +0200 Subject: [PATCH] update function help message, changed DESC->DESCRIPTION. (#10228) update function help message, changed DESC->DESCRIPTION (doc was outdated) --- src/commands.c | 2 +- src/commands/function-load.json | 2 +- src/functions.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands.c b/src/commands.c index 62291f33f..698a69f10 100644 --- a/src/commands.c +++ b/src/commands.c @@ -3404,7 +3404,7 @@ struct redisCommandArg FUNCTION_LOAD_Args[] = { {"engine-name",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"library-name",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"replace",ARG_TYPE_PURE_TOKEN,-1,"REPLACE",NULL,NULL,CMD_ARG_OPTIONAL}, -{"library-description",ARG_TYPE_STRING,-1,"DESC",NULL,NULL,CMD_ARG_OPTIONAL}, +{"library-description",ARG_TYPE_STRING,-1,"DESCRIPTION",NULL,NULL,CMD_ARG_OPTIONAL}, {"function-code",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} }; diff --git a/src/commands/function-load.json b/src/commands/function-load.json index df756ceab..0a363e328 100644 --- a/src/commands/function-load.json +++ b/src/commands/function-load.json @@ -37,7 +37,7 @@ { "name": "library-description", "type": "string", - "token": "DESC", + "token": "DESCRIPTION", "optional": true }, { diff --git a/src/functions.c b/src/functions.c index 57fb7ec24..739d178aa 100644 --- a/src/functions.c +++ b/src/functions.c @@ -808,7 +808,7 @@ void functionFlushCommand(client *c) { void functionHelpCommand(client *c) { const char *help[] = { -"LOAD [REPLACE] [DESC ] ", +"LOAD [REPLACE] [DESCRIPTION ] ", " Create a new library with the given library name and code.", "DELETE ", " Delete the given library.",