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.",