diff --git a/src/commands.c b/src/commands.c index 3af1cd6dc..aa5baa722 100644 --- a/src/commands.c +++ b/src/commands.c @@ -17,25 +17,25 @@ commandHistory BITCOUNT_History[] = { /* BITCOUNT tips */ #define BITCOUNT_tips NULL -/* BITCOUNT index index_unit argument table */ -struct redisCommandArg BITCOUNT_index_index_unit_Subargs[] = { +/* BITCOUNT range unit argument table */ +struct redisCommandArg BITCOUNT_range_unit_Subargs[] = { {"byte",ARG_TYPE_PURE_TOKEN,-1,"BYTE",NULL,NULL,CMD_ARG_NONE}, {"bit",ARG_TYPE_PURE_TOKEN,-1,"BIT",NULL,NULL,CMD_ARG_NONE}, {0} }; -/* BITCOUNT index argument table */ -struct redisCommandArg BITCOUNT_index_Subargs[] = { +/* BITCOUNT range argument table */ +struct redisCommandArg BITCOUNT_range_Subargs[] = { {"start",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"end",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"index_unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,.subargs=BITCOUNT_index_index_unit_Subargs}, +{"unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,.subargs=BITCOUNT_range_unit_Subargs}, {0} }; /* BITCOUNT argument table */ struct redisCommandArg BITCOUNT_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"index",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITCOUNT_index_Subargs}, +{"range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITCOUNT_range_Subargs}, {0} }; @@ -47,31 +47,31 @@ struct redisCommandArg BITCOUNT_Args[] = { /* BITFIELD tips */ #define BITFIELD_tips NULL -/* BITFIELD operation encoding_offset argument table */ -struct redisCommandArg BITFIELD_operation_encoding_offset_Subargs[] = { +/* BITFIELD operation get_block argument table */ +struct redisCommandArg BITFIELD_operation_get_block_Subargs[] = { {"encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} }; -/* BITFIELD operation write wrap_sat_fail argument table */ -struct redisCommandArg BITFIELD_operation_write_wrap_sat_fail_Subargs[] = { +/* BITFIELD operation write overflow_block argument table */ +struct redisCommandArg BITFIELD_operation_write_overflow_block_Subargs[] = { {"wrap",ARG_TYPE_PURE_TOKEN,-1,"WRAP",NULL,NULL,CMD_ARG_NONE}, {"sat",ARG_TYPE_PURE_TOKEN,-1,"SAT",NULL,NULL,CMD_ARG_NONE}, {"fail",ARG_TYPE_PURE_TOKEN,-1,"FAIL",NULL,NULL,CMD_ARG_NONE}, {0} }; -/* BITFIELD operation write write_operation encoding_offset_value argument table */ -struct redisCommandArg BITFIELD_operation_write_write_operation_encoding_offset_value_Subargs[] = { +/* BITFIELD operation write write_operation set_block argument table */ +struct redisCommandArg BITFIELD_operation_write_write_operation_set_block_Subargs[] = { {"encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} }; -/* BITFIELD operation write write_operation encoding_offset_increment argument table */ -struct redisCommandArg BITFIELD_operation_write_write_operation_encoding_offset_increment_Subargs[] = { +/* BITFIELD operation write write_operation incrby_block argument table */ +struct redisCommandArg BITFIELD_operation_write_write_operation_incrby_block_Subargs[] = { {"encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"increment",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, @@ -80,21 +80,21 @@ struct redisCommandArg BITFIELD_operation_write_write_operation_encoding_offset_ /* BITFIELD operation write write_operation argument table */ struct redisCommandArg BITFIELD_operation_write_write_operation_Subargs[] = { -{"encoding_offset_value",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_encoding_offset_value_Subargs}, -{"encoding_offset_increment",ARG_TYPE_BLOCK,-1,"INCRBY",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_encoding_offset_increment_Subargs}, +{"set-block",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_set_block_Subargs}, +{"incrby-block",ARG_TYPE_BLOCK,-1,"INCRBY",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_incrby_block_Subargs}, {0} }; /* BITFIELD operation write argument table */ struct redisCommandArg BITFIELD_operation_write_Subargs[] = { -{"wrap_sat_fail",ARG_TYPE_ONEOF,-1,"OVERFLOW",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITFIELD_operation_write_wrap_sat_fail_Subargs}, -{"write_operation",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_Subargs}, +{"overflow-block",ARG_TYPE_ONEOF,-1,"OVERFLOW",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITFIELD_operation_write_overflow_block_Subargs}, +{"write-operation",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_write_operation_Subargs}, {0} }; /* BITFIELD operation argument table */ struct redisCommandArg BITFIELD_operation_Subargs[] = { -{"encoding_offset",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_encoding_offset_Subargs}, +{"get-block",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_get_block_Subargs}, {"write",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=BITFIELD_operation_write_Subargs}, {0} }; @@ -114,8 +114,8 @@ struct redisCommandArg BITFIELD_Args[] = { /* BITFIELD_RO tips */ #define BITFIELD_RO_tips NULL -/* BITFIELD_RO encoding_offset argument table */ -struct redisCommandArg BITFIELD_RO_encoding_offset_Subargs[] = { +/* BITFIELD_RO get_block argument table */ +struct redisCommandArg BITFIELD_RO_get_block_Subargs[] = { {"encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -124,7 +124,7 @@ struct redisCommandArg BITFIELD_RO_encoding_offset_Subargs[] = { /* BITFIELD_RO argument table */ struct redisCommandArg BITFIELD_RO_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"encoding_offset",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,.subargs=BITFIELD_RO_encoding_offset_Subargs}, +{"get-block",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,.subargs=BITFIELD_RO_get_block_Subargs}, {0} }; @@ -155,24 +155,24 @@ commandHistory BITPOS_History[] = { /* BITPOS tips */ #define BITPOS_tips NULL -/* BITPOS index end_index index_unit argument table */ -struct redisCommandArg BITPOS_index_end_index_index_unit_Subargs[] = { +/* BITPOS range end_unit_block unit argument table */ +struct redisCommandArg BITPOS_range_end_unit_block_unit_Subargs[] = { {"byte",ARG_TYPE_PURE_TOKEN,-1,"BYTE",NULL,NULL,CMD_ARG_NONE}, {"bit",ARG_TYPE_PURE_TOKEN,-1,"BIT",NULL,NULL,CMD_ARG_NONE}, {0} }; -/* BITPOS index end_index argument table */ -struct redisCommandArg BITPOS_index_end_index_Subargs[] = { +/* BITPOS range end_unit_block argument table */ +struct redisCommandArg BITPOS_range_end_unit_block_Subargs[] = { {"end",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"index_unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,.subargs=BITPOS_index_end_index_index_unit_Subargs}, +{"unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,.subargs=BITPOS_range_end_unit_block_unit_Subargs}, {0} }; -/* BITPOS index argument table */ -struct redisCommandArg BITPOS_index_Subargs[] = { +/* BITPOS range argument table */ +struct redisCommandArg BITPOS_range_Subargs[] = { {"start",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"end_index",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITPOS_index_end_index_Subargs}, +{"end-unit-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITPOS_range_end_unit_block_Subargs}, {0} }; @@ -180,7 +180,7 @@ struct redisCommandArg BITPOS_index_Subargs[] = { struct redisCommandArg BITPOS_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"bit",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"index",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITPOS_index_Subargs}, +{"range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=BITPOS_range_Subargs}, {0} }; @@ -251,8 +251,8 @@ const char *CLUSTER_ADDSLOTSRANGE_tips[] = { NULL }; -/* CLUSTER ADDSLOTSRANGE start_slot_end_slot argument table */ -struct redisCommandArg CLUSTER_ADDSLOTSRANGE_start_slot_end_slot_Subargs[] = { +/* CLUSTER ADDSLOTSRANGE range argument table */ +struct redisCommandArg CLUSTER_ADDSLOTSRANGE_range_Subargs[] = { {"start-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"end-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -260,7 +260,7 @@ struct redisCommandArg CLUSTER_ADDSLOTSRANGE_start_slot_end_slot_Subargs[] = { /* CLUSTER ADDSLOTSRANGE argument table */ struct redisCommandArg CLUSTER_ADDSLOTSRANGE_Args[] = { -{"start-slot_end-slot",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CLUSTER_ADDSLOTSRANGE_start_slot_end_slot_Subargs}, +{"range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CLUSTER_ADDSLOTSRANGE_range_Subargs}, {0} }; @@ -337,8 +337,8 @@ const char *CLUSTER_DELSLOTSRANGE_tips[] = { NULL }; -/* CLUSTER DELSLOTSRANGE start_slot_end_slot argument table */ -struct redisCommandArg CLUSTER_DELSLOTSRANGE_start_slot_end_slot_Subargs[] = { +/* CLUSTER DELSLOTSRANGE range argument table */ +struct redisCommandArg CLUSTER_DELSLOTSRANGE_range_Subargs[] = { {"start-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"end-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -346,7 +346,7 @@ struct redisCommandArg CLUSTER_DELSLOTSRANGE_start_slot_end_slot_Subargs[] = { /* CLUSTER DELSLOTSRANGE argument table */ struct redisCommandArg CLUSTER_DELSLOTSRANGE_Args[] = { -{"start-slot_end-slot",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CLUSTER_DELSLOTSRANGE_start_slot_end_slot_Subargs}, +{"range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CLUSTER_DELSLOTSRANGE_range_Subargs}, {0} }; @@ -485,7 +485,7 @@ NULL struct redisCommandArg CLUSTER_MEET_Args[] = { {"ip",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"port",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"cluster_bus_port",ARG_TYPE_INTEGER,-1,NULL,NULL,"4.0.0",CMD_ARG_OPTIONAL}, +{"cluster-bus-port",ARG_TYPE_INTEGER,-1,NULL,NULL,"4.0.0",CMD_ARG_OPTIONAL}, {0} }; @@ -556,8 +556,8 @@ const char *CLUSTER_RESET_tips[] = { NULL }; -/* CLUSTER RESET hard_soft argument table */ -struct redisCommandArg CLUSTER_RESET_hard_soft_Subargs[] = { +/* CLUSTER RESET reset_type argument table */ +struct redisCommandArg CLUSTER_RESET_reset_type_Subargs[] = { {"hard",ARG_TYPE_PURE_TOKEN,-1,"HARD",NULL,NULL,CMD_ARG_NONE}, {"soft",ARG_TYPE_PURE_TOKEN,-1,"SOFT",NULL,NULL,CMD_ARG_NONE}, {0} @@ -565,7 +565,7 @@ struct redisCommandArg CLUSTER_RESET_hard_soft_Subargs[] = { /* CLUSTER RESET argument table */ struct redisCommandArg CLUSTER_RESET_Args[] = { -{"hard_soft",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=CLUSTER_RESET_hard_soft_Subargs}, +{"reset-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=CLUSTER_RESET_reset_type_Subargs}, {0} }; @@ -610,9 +610,9 @@ NULL /* CLUSTER SETSLOT subcommand argument table */ struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = { -{"node-id",ARG_TYPE_STRING,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE}, -{"node-id",ARG_TYPE_STRING,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE}, -{"node-id",ARG_TYPE_STRING,-1,"NODE",NULL,NULL,CMD_ARG_NONE}, +{"importing",ARG_TYPE_STRING,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE,.display_text="node-id"}, +{"migrating",ARG_TYPE_STRING,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE,.display_text="node-id"}, +{"node",ARG_TYPE_STRING,-1,"NODE",NULL,NULL,CMD_ARG_NONE,.display_text="node-id"}, {"stable",ARG_TYPE_PURE_TOKEN,-1,"STABLE",NULL,NULL,CMD_ARG_NONE}, {0} }; @@ -820,8 +820,8 @@ commandHistory CLIENT_KILL_History[] = { /* CLIENT KILL tips */ #define CLIENT_KILL_tips NULL -/* CLIENT KILL filter new_format normal_master_slave_pubsub argument table */ -struct redisCommandArg CLIENT_KILL_filter_new_format_normal_master_slave_pubsub_Subargs[] = { +/* CLIENT KILL filter new_format client_type argument table */ +struct redisCommandArg CLIENT_KILL_filter_new_format_client_type_Subargs[] = { {"normal",ARG_TYPE_PURE_TOKEN,-1,"NORMAL",NULL,NULL,CMD_ARG_NONE}, {"master",ARG_TYPE_PURE_TOKEN,-1,"MASTER",NULL,"3.2.0",CMD_ARG_NONE}, {"slave",ARG_TYPE_PURE_TOKEN,-1,"SLAVE",NULL,NULL,CMD_ARG_NONE}, @@ -833,17 +833,17 @@ struct redisCommandArg CLIENT_KILL_filter_new_format_normal_master_slave_pubsub_ /* CLIENT KILL filter new_format argument table */ struct redisCommandArg CLIENT_KILL_filter_new_format_Subargs[] = { {"client-id",ARG_TYPE_INTEGER,-1,"ID",NULL,"2.8.12",CMD_ARG_OPTIONAL}, -{"normal_master_slave_pubsub",ARG_TYPE_ONEOF,-1,"TYPE",NULL,"2.8.12",CMD_ARG_OPTIONAL,.subargs=CLIENT_KILL_filter_new_format_normal_master_slave_pubsub_Subargs}, +{"client-type",ARG_TYPE_ONEOF,-1,"TYPE",NULL,"2.8.12",CMD_ARG_OPTIONAL,.subargs=CLIENT_KILL_filter_new_format_client_type_Subargs}, {"username",ARG_TYPE_STRING,-1,"USER",NULL,NULL,CMD_ARG_OPTIONAL}, -{"ip:port",ARG_TYPE_STRING,-1,"ADDR",NULL,NULL,CMD_ARG_OPTIONAL}, -{"ip:port",ARG_TYPE_STRING,-1,"LADDR",NULL,"6.2.0",CMD_ARG_OPTIONAL}, -{"yes/no",ARG_TYPE_STRING,-1,"SKIPME",NULL,NULL,CMD_ARG_OPTIONAL}, +{"addr",ARG_TYPE_STRING,-1,"ADDR",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="ip:port"}, +{"laddr",ARG_TYPE_STRING,-1,"LADDR",NULL,"6.2.0",CMD_ARG_OPTIONAL,.display_text="ip:port"}, +{"skipme",ARG_TYPE_STRING,-1,"SKIPME",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="yes/no"}, {0} }; /* CLIENT KILL filter argument table */ struct redisCommandArg CLIENT_KILL_filter_Subargs[] = { -{"ip:port",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,.deprecated_since="2.8.12"}, +{"old-format",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,.deprecated_since="2.8.12",.display_text="ip:port"}, {"new-format",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CLIENT_KILL_filter_new_format_Subargs}, {0} }; @@ -870,8 +870,8 @@ const char *CLIENT_LIST_tips[] = { NULL }; -/* CLIENT LIST normal_master_replica_pubsub argument table */ -struct redisCommandArg CLIENT_LIST_normal_master_replica_pubsub_Subargs[] = { +/* CLIENT LIST client_type argument table */ +struct redisCommandArg CLIENT_LIST_client_type_Subargs[] = { {"normal",ARG_TYPE_PURE_TOKEN,-1,"NORMAL",NULL,NULL,CMD_ARG_NONE}, {"master",ARG_TYPE_PURE_TOKEN,-1,"MASTER",NULL,NULL,CMD_ARG_NONE}, {"replica",ARG_TYPE_PURE_TOKEN,-1,"REPLICA",NULL,NULL,CMD_ARG_NONE}, @@ -879,16 +879,10 @@ struct redisCommandArg CLIENT_LIST_normal_master_replica_pubsub_Subargs[] = { {0} }; -/* CLIENT LIST id argument table */ -struct redisCommandArg CLIENT_LIST_id_Subargs[] = { -{"client-id",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, -{0} -}; - /* CLIENT LIST argument table */ struct redisCommandArg CLIENT_LIST_Args[] = { -{"normal_master_replica_pubsub",ARG_TYPE_ONEOF,-1,"TYPE",NULL,"5.0.0",CMD_ARG_OPTIONAL,.subargs=CLIENT_LIST_normal_master_replica_pubsub_Subargs}, -{"id",ARG_TYPE_BLOCK,-1,"ID",NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=CLIENT_LIST_id_Subargs}, +{"client-type",ARG_TYPE_ONEOF,-1,"TYPE",NULL,"5.0.0",CMD_ARG_OPTIONAL,.subargs=CLIENT_LIST_client_type_Subargs}, +{"client-id",ARG_TYPE_INTEGER,-1,"ID",NULL,"6.2.0",CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, {0} }; @@ -946,8 +940,8 @@ struct redisCommandArg CLIENT_PAUSE_Args[] = { /* CLIENT REPLY tips */ #define CLIENT_REPLY_tips NULL -/* CLIENT REPLY on_off_skip argument table */ -struct redisCommandArg CLIENT_REPLY_on_off_skip_Subargs[] = { +/* CLIENT REPLY action argument table */ +struct redisCommandArg CLIENT_REPLY_action_Subargs[] = { {"on",ARG_TYPE_PURE_TOKEN,-1,"ON",NULL,NULL,CMD_ARG_NONE}, {"off",ARG_TYPE_PURE_TOKEN,-1,"OFF",NULL,NULL,CMD_ARG_NONE}, {"skip",ARG_TYPE_PURE_TOKEN,-1,"SKIP",NULL,NULL,CMD_ARG_NONE}, @@ -956,7 +950,7 @@ struct redisCommandArg CLIENT_REPLY_on_off_skip_Subargs[] = { /* CLIENT REPLY argument table */ struct redisCommandArg CLIENT_REPLY_Args[] = { -{"on_off_skip",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=CLIENT_REPLY_on_off_skip_Subargs}, +{"action",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=CLIENT_REPLY_action_Subargs}, {0} }; @@ -1017,8 +1011,8 @@ struct redisCommandArg CLIENT_TRACKING_Args[] = { /* CLIENT UNBLOCK tips */ #define CLIENT_UNBLOCK_tips NULL -/* CLIENT UNBLOCK timeout_error argument table */ -struct redisCommandArg CLIENT_UNBLOCK_timeout_error_Subargs[] = { +/* CLIENT UNBLOCK unblock_type argument table */ +struct redisCommandArg CLIENT_UNBLOCK_unblock_type_Subargs[] = { {"timeout",ARG_TYPE_PURE_TOKEN,-1,"TIMEOUT",NULL,NULL,CMD_ARG_NONE}, {"error",ARG_TYPE_PURE_TOKEN,-1,"ERROR",NULL,NULL,CMD_ARG_NONE}, {0} @@ -1027,7 +1021,7 @@ struct redisCommandArg CLIENT_UNBLOCK_timeout_error_Subargs[] = { /* CLIENT UNBLOCK argument table */ struct redisCommandArg CLIENT_UNBLOCK_Args[] = { {"client-id",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"timeout_error",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=CLIENT_UNBLOCK_timeout_error_Subargs}, +{"unblock-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=CLIENT_UNBLOCK_unblock_type_Subargs}, {0} }; @@ -1093,8 +1087,8 @@ commandHistory HELLO_History[] = { /* HELLO tips */ #define HELLO_tips NULL -/* HELLO arguments username_password argument table */ -struct redisCommandArg HELLO_arguments_username_password_Subargs[] = { +/* HELLO arguments auth argument table */ +struct redisCommandArg HELLO_arguments_auth_Subargs[] = { {"username",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"password",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -1103,7 +1097,7 @@ struct redisCommandArg HELLO_arguments_username_password_Subargs[] = { /* HELLO arguments argument table */ struct redisCommandArg HELLO_arguments_Subargs[] = { {"protover",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"username_password",ARG_TYPE_BLOCK,-1,"AUTH",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=HELLO_arguments_username_password_Subargs}, +{"auth",ARG_TYPE_BLOCK,-1,"AUTH",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=HELLO_arguments_auth_Subargs}, {"clientname",ARG_TYPE_STRING,-1,"SETNAME",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -1340,15 +1334,15 @@ const char *MIGRATE_tips[] = { NULL }; -/* MIGRATE key_or_empty_string argument table */ -struct redisCommandArg MIGRATE_key_or_empty_string_Subargs[] = { +/* MIGRATE key_selector argument table */ +struct redisCommandArg MIGRATE_key_selector_Subargs[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"empty_string",ARG_TYPE_PURE_TOKEN,-1,"""",NULL,NULL,CMD_ARG_NONE}, +{"empty-string",ARG_TYPE_PURE_TOKEN,-1,"""",NULL,NULL,CMD_ARG_NONE}, {0} }; -/* MIGRATE authentication username_password argument table */ -struct redisCommandArg MIGRATE_authentication_username_password_Subargs[] = { +/* MIGRATE authentication auth2 argument table */ +struct redisCommandArg MIGRATE_authentication_auth2_Subargs[] = { {"username",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"password",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -1356,8 +1350,8 @@ struct redisCommandArg MIGRATE_authentication_username_password_Subargs[] = { /* MIGRATE authentication argument table */ struct redisCommandArg MIGRATE_authentication_Subargs[] = { -{"password",ARG_TYPE_STRING,-1,"AUTH",NULL,"4.0.7",CMD_ARG_OPTIONAL}, -{"username_password",ARG_TYPE_BLOCK,-1,"AUTH2",NULL,"6.0.0",CMD_ARG_OPTIONAL,.subargs=MIGRATE_authentication_username_password_Subargs}, +{"auth",ARG_TYPE_STRING,-1,"AUTH",NULL,"4.0.7",CMD_ARG_NONE,.display_text="password"}, +{"auth2",ARG_TYPE_BLOCK,-1,"AUTH2",NULL,"6.0.0",CMD_ARG_NONE,.subargs=MIGRATE_authentication_auth2_Subargs}, {0} }; @@ -1365,13 +1359,13 @@ struct redisCommandArg MIGRATE_authentication_Subargs[] = { struct redisCommandArg MIGRATE_Args[] = { {"host",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"port",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"key_or_empty_string",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=MIGRATE_key_or_empty_string_Subargs}, +{"key-selector",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=MIGRATE_key_selector_Subargs}, {"destination-db",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"timeout",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"copy",ARG_TYPE_PURE_TOKEN,-1,"COPY",NULL,"3.0.0",CMD_ARG_OPTIONAL}, {"replace",ARG_TYPE_PURE_TOKEN,-1,"REPLACE",NULL,"3.0.0",CMD_ARG_OPTIONAL}, {"authentication",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=MIGRATE_authentication_Subargs}, -{"key",ARG_TYPE_KEY,1,"KEYS",NULL,"3.0.6",CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, +{"keys",ARG_TYPE_KEY,1,"KEYS",NULL,"3.0.6",CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE,.display_text="key"}, {0} }; @@ -1690,8 +1684,8 @@ struct redisCommandArg SCAN_Args[] = { /* SORT tips */ #define SORT_tips NULL -/* SORT offset_count argument table */ -struct redisCommandArg SORT_offset_count_Subargs[] = { +/* SORT limit argument table */ +struct redisCommandArg SORT_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -1707,9 +1701,9 @@ struct redisCommandArg SORT_order_Subargs[] = { /* SORT argument table */ struct redisCommandArg SORT_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"pattern",ARG_TYPE_PATTERN,1,"BY",NULL,NULL,CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_offset_count_Subargs}, -{"pattern",ARG_TYPE_PATTERN,1,"GET",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN}, +{"by-pattern",ARG_TYPE_PATTERN,1,"BY",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="pattern"}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_limit_Subargs}, +{"get-pattern",ARG_TYPE_PATTERN,1,"GET",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,.display_text="pattern"}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_order_Subargs}, {"sorting",ARG_TYPE_PURE_TOKEN,-1,"ALPHA",NULL,NULL,CMD_ARG_OPTIONAL}, {"destination",ARG_TYPE_KEY,2,"STORE",NULL,NULL,CMD_ARG_OPTIONAL}, @@ -1724,8 +1718,8 @@ struct redisCommandArg SORT_Args[] = { /* SORT_RO tips */ #define SORT_RO_tips NULL -/* SORT_RO offset_count argument table */ -struct redisCommandArg SORT_RO_offset_count_Subargs[] = { +/* SORT_RO limit argument table */ +struct redisCommandArg SORT_RO_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -1741,9 +1735,9 @@ struct redisCommandArg SORT_RO_order_Subargs[] = { /* SORT_RO argument table */ struct redisCommandArg SORT_RO_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"pattern",ARG_TYPE_PATTERN,1,"BY",NULL,NULL,CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_RO_offset_count_Subargs}, -{"pattern",ARG_TYPE_PATTERN,1,"GET",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN}, +{"by-pattern",ARG_TYPE_PATTERN,1,"BY",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="pattern"}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_RO_limit_Subargs}, +{"get-pattern",ARG_TYPE_PATTERN,1,"GET",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,.display_text="pattern"}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SORT_RO_order_Subargs}, {"sorting",ARG_TYPE_PURE_TOKEN,-1,"ALPHA",NULL,NULL,CMD_ARG_OPTIONAL}, {0} @@ -1856,8 +1850,8 @@ struct redisCommandArg GEOADD_condition_Subargs[] = { {0} }; -/* GEOADD longitude_latitude_member argument table */ -struct redisCommandArg GEOADD_longitude_latitude_member_Subargs[] = { +/* GEOADD data argument table */ +struct redisCommandArg GEOADD_data_Subargs[] = { {"longitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"latitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"member",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, @@ -1869,7 +1863,7 @@ struct redisCommandArg GEOADD_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"condition",ARG_TYPE_ONEOF,-1,NULL,NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=GEOADD_condition_Subargs}, {"change",ARG_TYPE_PURE_TOKEN,-1,"CH",NULL,"6.2.0",CMD_ARG_OPTIONAL}, -{"longitude_latitude_member",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=GEOADD_longitude_latitude_member_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=GEOADD_data_Subargs}, {0} }; @@ -1949,8 +1943,8 @@ struct redisCommandArg GEORADIUS_unit_Subargs[] = { {0} }; -/* GEORADIUS count argument table */ -struct redisCommandArg GEORADIUS_count_Subargs[] = { +/* GEORADIUS count_block argument table */ +struct redisCommandArg GEORADIUS_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,"6.2.0",CMD_ARG_OPTIONAL}, {0} @@ -1973,10 +1967,10 @@ struct redisCommandArg GEORADIUS_Args[] = { {"withcoord",ARG_TYPE_PURE_TOKEN,-1,"WITHCOORD",NULL,NULL,CMD_ARG_OPTIONAL}, {"withdist",ARG_TYPE_PURE_TOKEN,-1,"WITHDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {"withhash",ARG_TYPE_PURE_TOKEN,-1,"WITHHASH",NULL,NULL,CMD_ARG_OPTIONAL}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_count_block_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_order_Subargs}, -{"key",ARG_TYPE_KEY,1,"STORE",NULL,NULL,CMD_ARG_OPTIONAL}, -{"key",ARG_TYPE_KEY,2,"STOREDIST",NULL,NULL,CMD_ARG_OPTIONAL}, +{"storekey",ARG_TYPE_KEY,1,"STORE",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="key"}, +{"storedistkey",ARG_TYPE_KEY,2,"STOREDIST",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="key"}, {0} }; @@ -1997,8 +1991,8 @@ struct redisCommandArg GEORADIUSBYMEMBER_unit_Subargs[] = { {0} }; -/* GEORADIUSBYMEMBER count argument table */ -struct redisCommandArg GEORADIUSBYMEMBER_count_Subargs[] = { +/* GEORADIUSBYMEMBER count_block argument table */ +struct redisCommandArg GEORADIUSBYMEMBER_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,NULL,CMD_ARG_OPTIONAL}, {0} @@ -2020,10 +2014,10 @@ struct redisCommandArg GEORADIUSBYMEMBER_Args[] = { {"withcoord",ARG_TYPE_PURE_TOKEN,-1,"WITHCOORD",NULL,NULL,CMD_ARG_OPTIONAL}, {"withdist",ARG_TYPE_PURE_TOKEN,-1,"WITHDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {"withhash",ARG_TYPE_PURE_TOKEN,-1,"WITHHASH",NULL,NULL,CMD_ARG_OPTIONAL}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_count_block_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_order_Subargs}, -{"key",ARG_TYPE_KEY,1,"STORE",NULL,NULL,CMD_ARG_OPTIONAL}, -{"key",ARG_TYPE_KEY,2,"STOREDIST",NULL,NULL,CMD_ARG_OPTIONAL}, +{"storekey",ARG_TYPE_KEY,1,"STORE",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="key"}, +{"storedistkey",ARG_TYPE_KEY,2,"STOREDIST",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="key"}, {0} }; @@ -2044,8 +2038,8 @@ struct redisCommandArg GEORADIUSBYMEMBER_RO_unit_Subargs[] = { {0} }; -/* GEORADIUSBYMEMBER_RO count argument table */ -struct redisCommandArg GEORADIUSBYMEMBER_RO_count_Subargs[] = { +/* GEORADIUSBYMEMBER_RO count_block argument table */ +struct redisCommandArg GEORADIUSBYMEMBER_RO_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,NULL,CMD_ARG_OPTIONAL}, {0} @@ -2067,7 +2061,7 @@ struct redisCommandArg GEORADIUSBYMEMBER_RO_Args[] = { {"withcoord",ARG_TYPE_PURE_TOKEN,-1,"WITHCOORD",NULL,NULL,CMD_ARG_OPTIONAL}, {"withdist",ARG_TYPE_PURE_TOKEN,-1,"WITHDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {"withhash",ARG_TYPE_PURE_TOKEN,-1,"WITHHASH",NULL,NULL,CMD_ARG_OPTIONAL}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_RO_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_RO_count_block_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUSBYMEMBER_RO_order_Subargs}, {0} }; @@ -2092,8 +2086,8 @@ struct redisCommandArg GEORADIUS_RO_unit_Subargs[] = { {0} }; -/* GEORADIUS_RO count argument table */ -struct redisCommandArg GEORADIUS_RO_count_Subargs[] = { +/* GEORADIUS_RO count_block argument table */ +struct redisCommandArg GEORADIUS_RO_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,"6.2.0",CMD_ARG_OPTIONAL}, {0} @@ -2116,7 +2110,7 @@ struct redisCommandArg GEORADIUS_RO_Args[] = { {"withcoord",ARG_TYPE_PURE_TOKEN,-1,"WITHCOORD",NULL,NULL,CMD_ARG_OPTIONAL}, {"withdist",ARG_TYPE_PURE_TOKEN,-1,"WITHDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {"withhash",ARG_TYPE_PURE_TOKEN,-1,"WITHHASH",NULL,NULL,CMD_ARG_OPTIONAL}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_RO_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_RO_count_block_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEORADIUS_RO_order_Subargs}, {0} }; @@ -2129,8 +2123,8 @@ struct redisCommandArg GEORADIUS_RO_Args[] = { /* GEOSEARCH tips */ #define GEOSEARCH_tips NULL -/* GEOSEARCH from longitude_latitude argument table */ -struct redisCommandArg GEOSEARCH_from_longitude_latitude_Subargs[] = { +/* GEOSEARCH from fromlonlat argument table */ +struct redisCommandArg GEOSEARCH_from_fromlonlat_Subargs[] = { {"longitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"latitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -2139,7 +2133,7 @@ struct redisCommandArg GEOSEARCH_from_longitude_latitude_Subargs[] = { /* GEOSEARCH from argument table */ struct redisCommandArg GEOSEARCH_from_Subargs[] = { {"member",ARG_TYPE_STRING,-1,"FROMMEMBER",NULL,NULL,CMD_ARG_NONE}, -{"longitude_latitude",ARG_TYPE_BLOCK,-1,"FROMLONLAT",NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCH_from_longitude_latitude_Subargs}, +{"fromlonlat",ARG_TYPE_BLOCK,-1,"FROMLONLAT",NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCH_from_fromlonlat_Subargs}, {0} }; @@ -2190,8 +2184,8 @@ struct redisCommandArg GEOSEARCH_order_Subargs[] = { {0} }; -/* GEOSEARCH count argument table */ -struct redisCommandArg GEOSEARCH_count_Subargs[] = { +/* GEOSEARCH count_block argument table */ +struct redisCommandArg GEOSEARCH_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,NULL,CMD_ARG_OPTIONAL}, {0} @@ -2203,7 +2197,7 @@ struct redisCommandArg GEOSEARCH_Args[] = { {"from",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCH_from_Subargs}, {"by",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCH_by_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCH_order_Subargs}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCH_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCH_count_block_Subargs}, {"withcoord",ARG_TYPE_PURE_TOKEN,-1,"WITHCOORD",NULL,NULL,CMD_ARG_OPTIONAL}, {"withdist",ARG_TYPE_PURE_TOKEN,-1,"WITHDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {"withhash",ARG_TYPE_PURE_TOKEN,-1,"WITHHASH",NULL,NULL,CMD_ARG_OPTIONAL}, @@ -2218,8 +2212,8 @@ struct redisCommandArg GEOSEARCH_Args[] = { /* GEOSEARCHSTORE tips */ #define GEOSEARCHSTORE_tips NULL -/* GEOSEARCHSTORE from longitude_latitude argument table */ -struct redisCommandArg GEOSEARCHSTORE_from_longitude_latitude_Subargs[] = { +/* GEOSEARCHSTORE from fromlonlat argument table */ +struct redisCommandArg GEOSEARCHSTORE_from_fromlonlat_Subargs[] = { {"longitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"latitude",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -2228,7 +2222,7 @@ struct redisCommandArg GEOSEARCHSTORE_from_longitude_latitude_Subargs[] = { /* GEOSEARCHSTORE from argument table */ struct redisCommandArg GEOSEARCHSTORE_from_Subargs[] = { {"member",ARG_TYPE_STRING,-1,"FROMMEMBER",NULL,NULL,CMD_ARG_NONE}, -{"longitude_latitude",ARG_TYPE_BLOCK,-1,"FROMLONLAT",NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCHSTORE_from_longitude_latitude_Subargs}, +{"fromlonlat",ARG_TYPE_BLOCK,-1,"FROMLONLAT",NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCHSTORE_from_fromlonlat_Subargs}, {0} }; @@ -2279,8 +2273,8 @@ struct redisCommandArg GEOSEARCHSTORE_order_Subargs[] = { {0} }; -/* GEOSEARCHSTORE count argument table */ -struct redisCommandArg GEOSEARCHSTORE_count_Subargs[] = { +/* GEOSEARCHSTORE count_block argument table */ +struct redisCommandArg GEOSEARCHSTORE_count_block_Subargs[] = { {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_NONE}, {"any",ARG_TYPE_PURE_TOKEN,-1,"ANY",NULL,NULL,CMD_ARG_OPTIONAL}, {0} @@ -2293,7 +2287,7 @@ struct redisCommandArg GEOSEARCHSTORE_Args[] = { {"from",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCHSTORE_from_Subargs}, {"by",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=GEOSEARCHSTORE_by_Subargs}, {"order",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCHSTORE_order_Subargs}, -{"count",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCHSTORE_count_Subargs}, +{"count-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=GEOSEARCHSTORE_count_block_Subargs}, {"storedist",ARG_TYPE_PURE_TOKEN,-1,"STOREDIST",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -2449,8 +2443,8 @@ struct redisCommandArg HMGET_Args[] = { /* HMSET tips */ #define HMSET_tips NULL -/* HMSET field_value argument table */ -struct redisCommandArg HMSET_field_value_Subargs[] = { +/* HMSET data argument table */ +struct redisCommandArg HMSET_data_Subargs[] = { {"field",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -2459,7 +2453,7 @@ struct redisCommandArg HMSET_field_value_Subargs[] = { /* HMSET argument table */ struct redisCommandArg HMSET_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"field_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=HMSET_field_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=HMSET_data_Subargs}, {0} }; @@ -2519,8 +2513,8 @@ commandHistory HSET_History[] = { /* HSET tips */ #define HSET_tips NULL -/* HSET field_value argument table */ -struct redisCommandArg HSET_field_value_Subargs[] = { +/* HSET data argument table */ +struct redisCommandArg HSET_data_Subargs[] = { {"field",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -2529,7 +2523,7 @@ struct redisCommandArg HSET_field_value_Subargs[] = { /* HSET argument table */ struct redisCommandArg HSET_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"field_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=HSET_field_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=HSET_data_Subargs}, {0} }; @@ -3081,15 +3075,9 @@ struct redisCommandArg RPUSHX_Args[] = { /* PSUBSCRIBE tips */ #define PSUBSCRIBE_tips NULL -/* PSUBSCRIBE pattern argument table */ -struct redisCommandArg PSUBSCRIBE_pattern_Subargs[] = { -{"pattern",ARG_TYPE_PATTERN,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{0} -}; - /* PSUBSCRIBE argument table */ struct redisCommandArg PSUBSCRIBE_Args[] = { -{"pattern",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=PSUBSCRIBE_pattern_Subargs}, +{"pattern",ARG_TYPE_PATTERN,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, {0} }; @@ -3424,8 +3412,8 @@ const char *FUNCTION_FLUSH_tips[] = { NULL }; -/* FUNCTION FLUSH async argument table */ -struct redisCommandArg FUNCTION_FLUSH_async_Subargs[] = { +/* FUNCTION FLUSH flush_type argument table */ +struct redisCommandArg FUNCTION_FLUSH_flush_type_Subargs[] = { {"async",ARG_TYPE_PURE_TOKEN,-1,"ASYNC",NULL,NULL,CMD_ARG_NONE}, {"sync",ARG_TYPE_PURE_TOKEN,-1,"SYNC",NULL,NULL,CMD_ARG_NONE}, {0} @@ -3433,7 +3421,7 @@ struct redisCommandArg FUNCTION_FLUSH_async_Subargs[] = { /* FUNCTION FLUSH argument table */ struct redisCommandArg FUNCTION_FLUSH_Args[] = { -{"async",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FUNCTION_FLUSH_async_Subargs}, +{"flush-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FUNCTION_FLUSH_flush_type_Subargs}, {0} }; @@ -3611,8 +3599,8 @@ const char *SCRIPT_FLUSH_tips[] = { NULL }; -/* SCRIPT FLUSH async argument table */ -struct redisCommandArg SCRIPT_FLUSH_async_Subargs[] = { +/* SCRIPT FLUSH flush_type argument table */ +struct redisCommandArg SCRIPT_FLUSH_flush_type_Subargs[] = { {"async",ARG_TYPE_PURE_TOKEN,-1,"ASYNC",NULL,NULL,CMD_ARG_NONE}, {"sync",ARG_TYPE_PURE_TOKEN,-1,"SYNC",NULL,NULL,CMD_ARG_NONE}, {0} @@ -3620,7 +3608,7 @@ struct redisCommandArg SCRIPT_FLUSH_async_Subargs[] = { /* SCRIPT FLUSH argument table */ struct redisCommandArg SCRIPT_FLUSH_Args[] = { -{"async",ARG_TYPE_ONEOF,-1,NULL,NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=SCRIPT_FLUSH_async_Subargs}, +{"flush-type",ARG_TYPE_ONEOF,-1,NULL,NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=SCRIPT_FLUSH_flush_type_Subargs}, {0} }; @@ -3703,23 +3691,23 @@ struct redisCommandArg SENTINEL_CKQUORUM_Args[] = { /* SENTINEL CONFIG tips */ #define SENTINEL_CONFIG_tips NULL -/* SENTINEL CONFIG set_or_get set_param_value argument table */ -struct redisCommandArg SENTINEL_CONFIG_set_or_get_set_param_value_Subargs[] = { +/* SENTINEL CONFIG action set argument table */ +struct redisCommandArg SENTINEL_CONFIG_action_set_Subargs[] = { {"parameter",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} }; -/* SENTINEL CONFIG set_or_get argument table */ -struct redisCommandArg SENTINEL_CONFIG_set_or_get_Subargs[] = { -{"set_param_value",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_CONFIG_set_or_get_set_param_value_Subargs}, -{"parameter",ARG_TYPE_STRING,-1,"GET",NULL,NULL,CMD_ARG_MULTIPLE}, +/* SENTINEL CONFIG action argument table */ +struct redisCommandArg SENTINEL_CONFIG_action_Subargs[] = { +{"set",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_CONFIG_action_set_Subargs}, +{"get",ARG_TYPE_STRING,-1,"GET",NULL,NULL,CMD_ARG_MULTIPLE,.display_text="parameter"}, {0} }; /* SENTINEL CONFIG argument table */ struct redisCommandArg SENTINEL_CONFIG_Args[] = { -{"set_or_get",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=SENTINEL_CONFIG_set_or_get_Subargs}, +{"action",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=SENTINEL_CONFIG_action_Subargs}, {0} }; @@ -3731,8 +3719,8 @@ struct redisCommandArg SENTINEL_CONFIG_Args[] = { /* SENTINEL DEBUG tips */ #define SENTINEL_DEBUG_tips NULL -/* SENTINEL DEBUG parameter_value argument table */ -struct redisCommandArg SENTINEL_DEBUG_parameter_value_Subargs[] = { +/* SENTINEL DEBUG data argument table */ +struct redisCommandArg SENTINEL_DEBUG_data_Subargs[] = { {"parameter",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -3740,7 +3728,7 @@ struct redisCommandArg SENTINEL_DEBUG_parameter_value_Subargs[] = { /* SENTINEL DEBUG argument table */ struct redisCommandArg SENTINEL_DEBUG_Args[] = { -{"parameter_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_DEBUG_parameter_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_DEBUG_data_Subargs}, {0} }; @@ -3938,8 +3926,8 @@ struct redisCommandArg SENTINEL_SENTINELS_Args[] = { /* SENTINEL SET tips */ #define SENTINEL_SET_tips NULL -/* SENTINEL SET option_value argument table */ -struct redisCommandArg SENTINEL_SET_option_value_Subargs[] = { +/* SENTINEL SET data argument table */ +struct redisCommandArg SENTINEL_SET_data_Subargs[] = { {"option",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -3948,7 +3936,7 @@ struct redisCommandArg SENTINEL_SET_option_value_Subargs[] = { /* SENTINEL SET argument table */ struct redisCommandArg SENTINEL_SET_Args[] = { {"master-name",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"option_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_SET_option_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_SET_data_Subargs}, {0} }; @@ -4365,15 +4353,9 @@ commandHistory CONFIG_GET_History[] = { /* CONFIG GET tips */ #define CONFIG_GET_tips NULL -/* CONFIG GET parameter argument table */ -struct redisCommandArg CONFIG_GET_parameter_Subargs[] = { -{"parameter",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{0} -}; - /* CONFIG GET argument table */ struct redisCommandArg CONFIG_GET_Args[] = { -{"parameter",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CONFIG_GET_parameter_Subargs}, +{"parameter",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, {0} }; @@ -4416,8 +4398,8 @@ const char *CONFIG_SET_tips[] = { NULL }; -/* CONFIG SET parameter_value argument table */ -struct redisCommandArg CONFIG_SET_parameter_value_Subargs[] = { +/* CONFIG SET data argument table */ +struct redisCommandArg CONFIG_SET_data_Subargs[] = { {"parameter",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -4425,7 +4407,7 @@ struct redisCommandArg CONFIG_SET_parameter_value_Subargs[] = { /* CONFIG SET argument table */ struct redisCommandArg CONFIG_SET_Args[] = { -{"parameter_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CONFIG_SET_parameter_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=CONFIG_SET_data_Subargs}, {0} }; @@ -4507,8 +4489,8 @@ const char *FLUSHALL_tips[] = { NULL }; -/* FLUSHALL async argument table */ -struct redisCommandArg FLUSHALL_async_Subargs[] = { +/* FLUSHALL flush_type argument table */ +struct redisCommandArg FLUSHALL_flush_type_Subargs[] = { {"async",ARG_TYPE_PURE_TOKEN,-1,"ASYNC",NULL,"4.0.0",CMD_ARG_NONE}, {"sync",ARG_TYPE_PURE_TOKEN,-1,"SYNC",NULL,"6.2.0",CMD_ARG_NONE}, {0} @@ -4516,7 +4498,7 @@ struct redisCommandArg FLUSHALL_async_Subargs[] = { /* FLUSHALL argument table */ struct redisCommandArg FLUSHALL_Args[] = { -{"async",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FLUSHALL_async_Subargs}, +{"flush-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FLUSHALL_flush_type_Subargs}, {0} }; @@ -4536,8 +4518,8 @@ const char *FLUSHDB_tips[] = { NULL }; -/* FLUSHDB async argument table */ -struct redisCommandArg FLUSHDB_async_Subargs[] = { +/* FLUSHDB flush_type argument table */ +struct redisCommandArg FLUSHDB_flush_type_Subargs[] = { {"async",ARG_TYPE_PURE_TOKEN,-1,"ASYNC",NULL,"4.0.0",CMD_ARG_NONE}, {"sync",ARG_TYPE_PURE_TOKEN,-1,"SYNC",NULL,"6.2.0",CMD_ARG_NONE}, {0} @@ -4545,7 +4527,7 @@ struct redisCommandArg FLUSHDB_async_Subargs[] = { /* FLUSHDB argument table */ struct redisCommandArg FLUSHDB_Args[] = { -{"async",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FLUSHDB_async_Subargs}, +{"flush-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=FLUSHDB_flush_type_Subargs}, {0} }; @@ -4867,17 +4849,11 @@ struct redisCommandArg MODULE_LOADEX_configs_Subargs[] = { {0} }; -/* MODULE LOADEX args argument table */ -struct redisCommandArg MODULE_LOADEX_args_Subargs[] = { -{"arg",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{0} -}; - /* MODULE LOADEX argument table */ struct redisCommandArg MODULE_LOADEX_Args[] = { {"path",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"configs",ARG_TYPE_BLOCK,-1,"CONFIG",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,.subargs=MODULE_LOADEX_configs_Subargs}, -{"args",ARG_TYPE_BLOCK,-1,"ARGS",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE,.subargs=MODULE_LOADEX_args_Subargs}, +{"args",ARG_TYPE_STRING,-1,"ARGS",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, {0} }; @@ -5011,8 +4987,8 @@ commandHistory SHUTDOWN_History[] = { /* SHUTDOWN tips */ #define SHUTDOWN_tips NULL -/* SHUTDOWN nosave_save argument table */ -struct redisCommandArg SHUTDOWN_nosave_save_Subargs[] = { +/* SHUTDOWN save_selector argument table */ +struct redisCommandArg SHUTDOWN_save_selector_Subargs[] = { {"nosave",ARG_TYPE_PURE_TOKEN,-1,"NOSAVE",NULL,NULL,CMD_ARG_NONE}, {"save",ARG_TYPE_PURE_TOKEN,-1,"SAVE",NULL,NULL,CMD_ARG_NONE}, {0} @@ -5020,7 +4996,7 @@ struct redisCommandArg SHUTDOWN_nosave_save_Subargs[] = { /* SHUTDOWN argument table */ struct redisCommandArg SHUTDOWN_Args[] = { -{"nosave_save",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SHUTDOWN_nosave_save_Subargs}, +{"save-selector",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=SHUTDOWN_save_selector_Subargs}, {"now",ARG_TYPE_PURE_TOKEN,-1,"NOW",NULL,"7.0.0",CMD_ARG_OPTIONAL}, {"force",ARG_TYPE_PURE_TOKEN,-1,"FORCE",NULL,"7.0.0",CMD_ARG_OPTIONAL}, {"abort",ARG_TYPE_PURE_TOKEN,-1,"ABORT",NULL,"7.0.0",CMD_ARG_OPTIONAL}, @@ -5522,8 +5498,8 @@ struct redisCommandArg ZADD_comparison_Subargs[] = { {0} }; -/* ZADD score_member argument table */ -struct redisCommandArg ZADD_score_member_Subargs[] = { +/* ZADD data argument table */ +struct redisCommandArg ZADD_data_Subargs[] = { {"score",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"member",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -5536,7 +5512,7 @@ struct redisCommandArg ZADD_Args[] = { {"comparison",ARG_TYPE_ONEOF,-1,NULL,NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=ZADD_comparison_Subargs}, {"change",ARG_TYPE_PURE_TOKEN,-1,"CH",NULL,"3.0.2",CMD_ARG_OPTIONAL}, {"increment",ARG_TYPE_PURE_TOKEN,-1,"INCR",NULL,"3.0.2",CMD_ARG_OPTIONAL}, -{"score_member",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=ZADD_score_member_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=ZADD_data_Subargs}, {0} }; @@ -5814,8 +5790,8 @@ struct redisCommandArg ZRANGE_sortby_Subargs[] = { {0} }; -/* ZRANGE offset_count argument table */ -struct redisCommandArg ZRANGE_offset_count_Subargs[] = { +/* ZRANGE limit argument table */ +struct redisCommandArg ZRANGE_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -5828,7 +5804,7 @@ struct redisCommandArg ZRANGE_Args[] = { {"stop",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"sortby",ARG_TYPE_ONEOF,-1,NULL,NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=ZRANGE_sortby_Subargs}, {"rev",ARG_TYPE_PURE_TOKEN,-1,"REV",NULL,"6.2.0",CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=ZRANGE_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,"6.2.0",CMD_ARG_OPTIONAL,.subargs=ZRANGE_limit_Subargs}, {"withscores",ARG_TYPE_PURE_TOKEN,-1,"WITHSCORES",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -5841,8 +5817,8 @@ struct redisCommandArg ZRANGE_Args[] = { /* ZRANGEBYLEX tips */ #define ZRANGEBYLEX_tips NULL -/* ZRANGEBYLEX offset_count argument table */ -struct redisCommandArg ZRANGEBYLEX_offset_count_Subargs[] = { +/* ZRANGEBYLEX limit argument table */ +struct redisCommandArg ZRANGEBYLEX_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -5853,7 +5829,7 @@ struct redisCommandArg ZRANGEBYLEX_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"min",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"max",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGEBYLEX_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGEBYLEX_limit_Subargs}, {0} }; @@ -5868,8 +5844,8 @@ commandHistory ZRANGEBYSCORE_History[] = { /* ZRANGEBYSCORE tips */ #define ZRANGEBYSCORE_tips NULL -/* ZRANGEBYSCORE offset_count argument table */ -struct redisCommandArg ZRANGEBYSCORE_offset_count_Subargs[] = { +/* ZRANGEBYSCORE limit argument table */ +struct redisCommandArg ZRANGEBYSCORE_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -5881,7 +5857,7 @@ struct redisCommandArg ZRANGEBYSCORE_Args[] = { {"min",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"max",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"withscores",ARG_TYPE_PURE_TOKEN,-1,"WITHSCORES",NULL,"2.0.0",CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGEBYSCORE_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGEBYSCORE_limit_Subargs}, {0} }; @@ -5900,8 +5876,8 @@ struct redisCommandArg ZRANGESTORE_sortby_Subargs[] = { {0} }; -/* ZRANGESTORE offset_count argument table */ -struct redisCommandArg ZRANGESTORE_offset_count_Subargs[] = { +/* ZRANGESTORE limit argument table */ +struct redisCommandArg ZRANGESTORE_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -5915,7 +5891,7 @@ struct redisCommandArg ZRANGESTORE_Args[] = { {"max",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"sortby",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGESTORE_sortby_Subargs}, {"rev",ARG_TYPE_PURE_TOKEN,-1,"REV",NULL,NULL,CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGESTORE_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZRANGESTORE_limit_Subargs}, {0} }; @@ -6025,8 +6001,8 @@ struct redisCommandArg ZREVRANGE_Args[] = { /* ZREVRANGEBYLEX tips */ #define ZREVRANGEBYLEX_tips NULL -/* ZREVRANGEBYLEX offset_count argument table */ -struct redisCommandArg ZREVRANGEBYLEX_offset_count_Subargs[] = { +/* ZREVRANGEBYLEX limit argument table */ +struct redisCommandArg ZREVRANGEBYLEX_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6037,7 +6013,7 @@ struct redisCommandArg ZREVRANGEBYLEX_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"max",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"min",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZREVRANGEBYLEX_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZREVRANGEBYLEX_limit_Subargs}, {0} }; @@ -6052,8 +6028,8 @@ commandHistory ZREVRANGEBYSCORE_History[] = { /* ZREVRANGEBYSCORE tips */ #define ZREVRANGEBYSCORE_tips NULL -/* ZREVRANGEBYSCORE offset_count argument table */ -struct redisCommandArg ZREVRANGEBYSCORE_offset_count_Subargs[] = { +/* ZREVRANGEBYSCORE limit argument table */ +struct redisCommandArg ZREVRANGEBYSCORE_limit_Subargs[] = { {"offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6065,7 +6041,7 @@ struct redisCommandArg ZREVRANGEBYSCORE_Args[] = { {"max",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"min",ARG_TYPE_DOUBLE,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"withscores",ARG_TYPE_PURE_TOKEN,-1,"WITHSCORES",NULL,NULL,CMD_ARG_OPTIONAL}, -{"offset_count",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZREVRANGEBYSCORE_offset_count_Subargs}, +{"limit",ARG_TYPE_BLOCK,-1,"LIMIT",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=ZREVRANGEBYSCORE_limit_Subargs}, {0} }; @@ -6225,15 +6201,15 @@ struct redisCommandArg XADD_trim_Subargs[] = { {0} }; -/* XADD id_or_auto argument table */ -struct redisCommandArg XADD_id_or_auto_Subargs[] = { -{"auto_id",ARG_TYPE_PURE_TOKEN,-1,"*",NULL,NULL,CMD_ARG_NONE}, +/* XADD id_selector argument table */ +struct redisCommandArg XADD_id_selector_Subargs[] = { +{"auto-id",ARG_TYPE_PURE_TOKEN,-1,"*",NULL,NULL,CMD_ARG_NONE}, {"id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} }; -/* XADD field_value argument table */ -struct redisCommandArg XADD_field_value_Subargs[] = { +/* XADD data argument table */ +struct redisCommandArg XADD_data_Subargs[] = { {"field",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6244,8 +6220,8 @@ struct redisCommandArg XADD_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"nomkstream",ARG_TYPE_PURE_TOKEN,-1,"NOMKSTREAM",NULL,"6.2.0",CMD_ARG_OPTIONAL}, {"trim",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=XADD_trim_Subargs}, -{"id_or_auto",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XADD_id_or_auto_Subargs}, -{"field_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=XADD_field_value_Subargs}, +{"id-selector",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XADD_id_selector_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=XADD_data_Subargs}, {0} }; @@ -6298,7 +6274,7 @@ struct redisCommandArg XCLAIM_Args[] = { {"count",ARG_TYPE_INTEGER,-1,"RETRYCOUNT",NULL,NULL,CMD_ARG_OPTIONAL}, {"force",ARG_TYPE_PURE_TOKEN,-1,"FORCE",NULL,NULL,CMD_ARG_OPTIONAL}, {"justid",ARG_TYPE_PURE_TOKEN,-1,"JUSTID",NULL,NULL,CMD_ARG_OPTIONAL}, -{"id",ARG_TYPE_STRING,-1,"LASTID",NULL,NULL,CMD_ARG_OPTIONAL}, +{"lastid",ARG_TYPE_STRING,-1,"LASTID",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -6328,10 +6304,10 @@ commandHistory XGROUP_CREATE_History[] = { /* XGROUP CREATE tips */ #define XGROUP_CREATE_tips NULL -/* XGROUP CREATE id argument table */ -struct redisCommandArg XGROUP_CREATE_id_Subargs[] = { +/* XGROUP CREATE id_selector argument table */ +struct redisCommandArg XGROUP_CREATE_id_selector_Subargs[] = { {"id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"new_id",ARG_TYPE_PURE_TOKEN,-1,"$",NULL,NULL,CMD_ARG_NONE}, +{"new-id",ARG_TYPE_PURE_TOKEN,-1,"$",NULL,NULL,CMD_ARG_NONE}, {0} }; @@ -6339,9 +6315,9 @@ struct redisCommandArg XGROUP_CREATE_id_Subargs[] = { struct redisCommandArg XGROUP_CREATE_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"groupname",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"id",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XGROUP_CREATE_id_Subargs}, +{"id-selector",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XGROUP_CREATE_id_selector_Subargs}, {"mkstream",ARG_TYPE_PURE_TOKEN,-1,"MKSTREAM",NULL,NULL,CMD_ARG_OPTIONAL}, -{"entries_read",ARG_TYPE_INTEGER,-1,"ENTRIESREAD",NULL,NULL,CMD_ARG_OPTIONAL}, +{"entries-read",ARG_TYPE_INTEGER,-1,"ENTRIESREAD",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -6411,10 +6387,10 @@ commandHistory XGROUP_SETID_History[] = { /* XGROUP SETID tips */ #define XGROUP_SETID_tips NULL -/* XGROUP SETID id argument table */ -struct redisCommandArg XGROUP_SETID_id_Subargs[] = { +/* XGROUP SETID id_selector argument table */ +struct redisCommandArg XGROUP_SETID_id_selector_Subargs[] = { {"id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"new_id",ARG_TYPE_PURE_TOKEN,-1,"$",NULL,NULL,CMD_ARG_NONE}, +{"new-id",ARG_TYPE_PURE_TOKEN,-1,"$",NULL,NULL,CMD_ARG_NONE}, {0} }; @@ -6422,8 +6398,8 @@ struct redisCommandArg XGROUP_SETID_id_Subargs[] = { struct redisCommandArg XGROUP_SETID_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"groupname",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"id",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XGROUP_SETID_id_Subargs}, -{"entries_read",ARG_TYPE_INTEGER,-1,"ENTRIESREAD",NULL,NULL,CMD_ARG_OPTIONAL}, +{"id-selector",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,.subargs=XGROUP_SETID_id_selector_Subargs}, +{"entriesread",ARG_TYPE_INTEGER,-1,"ENTRIESREAD",NULL,NULL,CMD_ARG_OPTIONAL,.display_text="entries-read"}, {0} }; @@ -6501,8 +6477,9 @@ commandHistory XINFO_STREAM_History[] = { /* XINFO STREAM tips */ #define XINFO_STREAM_tips NULL -/* XINFO STREAM full argument table */ -struct redisCommandArg XINFO_STREAM_full_Subargs[] = { +/* XINFO STREAM full_block argument table */ +struct redisCommandArg XINFO_STREAM_full_block_Subargs[] = { +{"full",ARG_TYPE_PURE_TOKEN,-1,"FULL",NULL,NULL,CMD_ARG_NONE}, {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -6510,7 +6487,7 @@ struct redisCommandArg XINFO_STREAM_full_Subargs[] = { /* XINFO STREAM argument table */ struct redisCommandArg XINFO_STREAM_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, -{"full",ARG_TYPE_BLOCK,-1,"FULL",NULL,NULL,CMD_ARG_OPTIONAL,.subargs=XINFO_STREAM_full_Subargs}, +{"full-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,.subargs=XINFO_STREAM_full_block_Subargs}, {0} }; @@ -6628,8 +6605,8 @@ struct redisCommandArg XREAD_Args[] = { /* XREADGROUP tips */ #define XREADGROUP_tips NULL -/* XREADGROUP group_consumer argument table */ -struct redisCommandArg XREADGROUP_group_consumer_Subargs[] = { +/* XREADGROUP group_block argument table */ +struct redisCommandArg XREADGROUP_group_block_Subargs[] = { {"group",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"consumer",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6644,7 +6621,7 @@ struct redisCommandArg XREADGROUP_streams_Subargs[] = { /* XREADGROUP argument table */ struct redisCommandArg XREADGROUP_Args[] = { -{"group_consumer",ARG_TYPE_BLOCK,-1,"GROUP",NULL,NULL,CMD_ARG_NONE,.subargs=XREADGROUP_group_consumer_Subargs}, +{"group-block",ARG_TYPE_BLOCK,-1,"GROUP",NULL,NULL,CMD_ARG_NONE,.subargs=XREADGROUP_group_block_Subargs}, {"count",ARG_TYPE_INTEGER,-1,"COUNT",NULL,NULL,CMD_ARG_OPTIONAL}, {"milliseconds",ARG_TYPE_INTEGER,-1,"BLOCK",NULL,NULL,CMD_ARG_OPTIONAL}, {"noack",ARG_TYPE_PURE_TOKEN,-1,"NOACK",NULL,NULL,CMD_ARG_OPTIONAL}, @@ -6687,8 +6664,8 @@ commandHistory XSETID_History[] = { struct redisCommandArg XSETID_Args[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"last-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"entries_added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,NULL,CMD_ARG_OPTIONAL}, -{"max_deleted_entry_id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,NULL,CMD_ARG_OPTIONAL}, +{"entries-added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,NULL,CMD_ARG_OPTIONAL}, +{"max-deleted-id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -6922,7 +6899,7 @@ struct redisCommandArg LCS_Args[] = { {"key2",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"len",ARG_TYPE_PURE_TOKEN,-1,"LEN",NULL,NULL,CMD_ARG_OPTIONAL}, {"idx",ARG_TYPE_PURE_TOKEN,-1,"IDX",NULL,NULL,CMD_ARG_OPTIONAL}, -{"len",ARG_TYPE_INTEGER,-1,"MINMATCHLEN",NULL,NULL,CMD_ARG_OPTIONAL}, +{"min-match-len",ARG_TYPE_INTEGER,-1,"MINMATCHLEN",NULL,NULL,CMD_ARG_OPTIONAL}, {"withmatchlen",ARG_TYPE_PURE_TOKEN,-1,"WITHMATCHLEN",NULL,NULL,CMD_ARG_OPTIONAL}, {0} }; @@ -6956,8 +6933,8 @@ const char *MSET_tips[] = { NULL }; -/* MSET key_value argument table */ -struct redisCommandArg MSET_key_value_Subargs[] = { +/* MSET data argument table */ +struct redisCommandArg MSET_data_Subargs[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6965,7 +6942,7 @@ struct redisCommandArg MSET_key_value_Subargs[] = { /* MSET argument table */ struct redisCommandArg MSET_Args[] = { -{"key_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=MSET_key_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=MSET_data_Subargs}, {0} }; @@ -6981,8 +6958,8 @@ const char *MSETNX_tips[] = { NULL }; -/* MSETNX key_value argument table */ -struct redisCommandArg MSETNX_key_value_Subargs[] = { +/* MSETNX data argument table */ +struct redisCommandArg MSETNX_data_Subargs[] = { {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"value",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {0} @@ -6990,7 +6967,7 @@ struct redisCommandArg MSETNX_key_value_Subargs[] = { /* MSETNX argument table */ struct redisCommandArg MSETNX_Args[] = { -{"key_value",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=MSETNX_key_value_Subargs}, +{"data",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,.subargs=MSETNX_data_Subargs}, {0} }; diff --git a/src/commands/bitcount.json b/src/commands/bitcount.json index c85260918..da34eec31 100644 --- a/src/commands/bitcount.json +++ b/src/commands/bitcount.json @@ -45,7 +45,7 @@ "key_spec_index": 0 }, { - "name": "index", + "name": "range", "type": "block", "optional": true, "arguments": [ @@ -58,7 +58,7 @@ "type": "integer" }, { - "name": "index_unit", + "name": "unit", "type": "oneof", "optional": true, "since": "7.0.0", diff --git a/src/commands/bitfield.json b/src/commands/bitfield.json index d1bec969e..ccee61fe6 100644 --- a/src/commands/bitfield.json +++ b/src/commands/bitfield.json @@ -50,7 +50,7 @@ "arguments": [ { "token": "GET", - "name": "encoding_offset", + "name": "get-block", "type": "block", "arguments": [ { @@ -69,7 +69,7 @@ "arguments": [ { "token": "OVERFLOW", - "name": "wrap_sat_fail", + "name": "overflow-block", "type": "oneof", "optional": true, "arguments": [ @@ -91,12 +91,12 @@ ] }, { - "name": "write_operation", + "name": "write-operation", "type": "oneof", "arguments": [ { "token": "SET", - "name": "encoding_offset_value", + "name": "set-block", "type": "block", "arguments": [ { @@ -115,7 +115,7 @@ }, { "token": "INCRBY", - "name": "encoding_offset_increment", + "name": "incrby-block", "type": "block", "arguments": [ { @@ -140,4 +140,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/commands/bitfield_ro.json b/src/commands/bitfield_ro.json index 99e3c9860..a6681c9e0 100644 --- a/src/commands/bitfield_ro.json +++ b/src/commands/bitfield_ro.json @@ -41,7 +41,7 @@ }, { "token": "GET", - "name": "encoding_offset", + "name": "get-block", "type": "block", "multiple": true, "multiple_token": true, diff --git a/src/commands/bitpos.json b/src/commands/bitpos.json index b8d2bf03b..24e357dcc 100644 --- a/src/commands/bitpos.json +++ b/src/commands/bitpos.json @@ -49,7 +49,7 @@ "type": "integer" }, { - "name": "index", + "name": "range", "type": "block", "optional": true, "arguments": [ @@ -58,7 +58,7 @@ "type": "integer" }, { - "name": "end_index", + "name": "end-unit-block", "type": "block", "optional": true, "arguments": [ @@ -67,7 +67,7 @@ "type": "integer" }, { - "name": "index_unit", + "name": "unit", "type": "oneof", "optional": true, "since": "7.0.0", diff --git a/src/commands/client-kill.json b/src/commands/client-kill.json index 6303c747f..155b811a1 100644 --- a/src/commands/client-kill.json +++ b/src/commands/client-kill.json @@ -45,7 +45,8 @@ "type": "oneof", "arguments": [ { - "name": "ip:port", + "name": "old-format", + "display": "ip:port", "type": "string", "deprecated_since": "2.8.12" }, @@ -63,7 +64,7 @@ }, { "token": "TYPE", - "name": "normal_master_slave_pubsub", + "name": "client-type", "type": "oneof", "optional": true, "since": "2.8.12", @@ -105,20 +106,23 @@ }, { "token": "ADDR", - "name": "ip:port", + "name": "addr", + "display": "ip:port", "type": "string", "optional": true }, { "token": "LADDR", - "name": "ip:port", + "name": "laddr", + "display": "ip:port", "type": "string", "optional": true, "since": "6.2.0" }, { "token": "SKIPME", - "name": "yes/no", + "name": "skipme", + "display": "yes/no", "type": "string", "optional": true } diff --git a/src/commands/client-list.json b/src/commands/client-list.json index 75605cfb1..6f1bb332f 100644 --- a/src/commands/client-list.json +++ b/src/commands/client-list.json @@ -37,7 +37,7 @@ "arguments": [ { "token": "TYPE", - "name": "normal_master_replica_pubsub", + "name": "client-type", "type": "oneof", "optional": true, "since": "5.0.0", @@ -65,18 +65,12 @@ ] }, { - "name": "id", + "name": "client-id", "token": "ID", - "type": "block", + "type": "integer", "optional": true, - "since": "6.2.0", - "arguments": [ - { - "name": "client-id", - "type": "integer", - "multiple": true - } - ] + "multiple": true, + "since": "6.2.0" } ] } diff --git a/src/commands/client-reply.json b/src/commands/client-reply.json index 25d2cef72..5aa919cca 100644 --- a/src/commands/client-reply.json +++ b/src/commands/client-reply.json @@ -18,7 +18,7 @@ ], "arguments": [ { - "name": "on_off_skip", + "name": "action", "type": "oneof", "arguments": [ { diff --git a/src/commands/client-unblock.json b/src/commands/client-unblock.json index 75bdddc29..4b37d2fbd 100644 --- a/src/commands/client-unblock.json +++ b/src/commands/client-unblock.json @@ -23,7 +23,7 @@ "type": "integer" }, { - "name": "timeout_error", + "name": "unblock-type", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/cluster-addslotsrange.json b/src/commands/cluster-addslotsrange.json index ee58776d3..3527f40cb 100644 --- a/src/commands/cluster-addslotsrange.json +++ b/src/commands/cluster-addslotsrange.json @@ -17,7 +17,7 @@ ], "arguments": [ { - "name": "start-slot_end-slot", + "name": "range", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/cluster-delslotsrange.json b/src/commands/cluster-delslotsrange.json index d13bf0ab8..116d4ff1c 100644 --- a/src/commands/cluster-delslotsrange.json +++ b/src/commands/cluster-delslotsrange.json @@ -17,7 +17,7 @@ ], "arguments": [ { - "name": "start-slot_end-slot", + "name": "range", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/cluster-meet.json b/src/commands/cluster-meet.json index 9a85be76d..c8d55f4e6 100644 --- a/src/commands/cluster-meet.json +++ b/src/commands/cluster-meet.json @@ -31,7 +31,7 @@ "type": "integer" }, { - "name": "cluster_bus_port", + "name": "cluster-bus-port", "type": "integer", "optional": true, "since": "4.0.0" diff --git a/src/commands/cluster-reset.json b/src/commands/cluster-reset.json index 630f458e7..b11607a0e 100644 --- a/src/commands/cluster-reset.json +++ b/src/commands/cluster-reset.json @@ -17,7 +17,7 @@ ], "arguments": [ { - "name": "hard_soft", + "name": "reset-type", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/cluster-setslot.json b/src/commands/cluster-setslot.json index 5d1aa45fc..6bdcae90c 100644 --- a/src/commands/cluster-setslot.json +++ b/src/commands/cluster-setslot.json @@ -25,17 +25,20 @@ "type": "oneof", "arguments": [ { - "name": "node-id", + "name": "importing", + "display": "node-id", "type": "string", "token": "IMPORTING" }, { - "name": "node-id", + "name": "migrating", + "display": "node-id", "type": "string", "token": "MIGRATING" }, { - "name": "node-id", + "name": "node", + "display": "node-id", "type": "string", "token": "NODE" }, diff --git a/src/commands/config-get.json b/src/commands/config-get.json index 26c060941..1ea387686 100644 --- a/src/commands/config-get.json +++ b/src/commands/config-get.json @@ -22,14 +22,8 @@ "arguments": [ { "name": "parameter", - "type": "block", - "multiple": true, - "arguments": [ - { - "name": "parameter", - "type": "string" - } - ] + "type": "string", + "multiple": true } ] } diff --git a/src/commands/config-set.json b/src/commands/config-set.json index 656e4bca3..3a337f5c6 100644 --- a/src/commands/config-set.json +++ b/src/commands/config-set.json @@ -25,7 +25,7 @@ ], "arguments": [ { - "name": "parameter_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/flushall.json b/src/commands/flushall.json index ef6a1f883..4add012ba 100644 --- a/src/commands/flushall.json +++ b/src/commands/flushall.json @@ -29,7 +29,7 @@ ], "arguments": [ { - "name": "async", + "name": "flush-type", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/flushdb.json b/src/commands/flushdb.json index 408ab326b..858939f07 100644 --- a/src/commands/flushdb.json +++ b/src/commands/flushdb.json @@ -29,7 +29,7 @@ ], "arguments": [ { - "name": "async", + "name": "flush-type", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/function-flush.json b/src/commands/function-flush.json index a5ab2db75..a2ab58e4f 100644 --- a/src/commands/function-flush.json +++ b/src/commands/function-flush.json @@ -20,7 +20,7 @@ ], "arguments": [ { - "name": "async", + "name": "flush-type", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/geoadd.json b/src/commands/geoadd.json index acdc575e4..d33836cf4 100644 --- a/src/commands/geoadd.json +++ b/src/commands/geoadd.json @@ -71,7 +71,7 @@ "since": "6.2.0" }, { - "name": "longitude_latitude_member", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/georadius.json b/src/commands/georadius.json index ba58db562..606ed43ed 100644 --- a/src/commands/georadius.json +++ b/src/commands/georadius.json @@ -146,7 +146,7 @@ "optional": true }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ @@ -183,14 +183,16 @@ }, { "token": "STORE", - "name": "key", + "name": "storekey", + "display": "key", "type": "key", "key_spec_index": 1, "optional": true }, { "token": "STOREDIST", - "name": "key", + "name": "storedistkey", + "display": "key", "type": "key", "key_spec_index": 2, "optional": true diff --git a/src/commands/georadius_ro.json b/src/commands/georadius_ro.json index 9859d3067..4696f78b8 100644 --- a/src/commands/georadius_ro.json +++ b/src/commands/georadius_ro.json @@ -106,7 +106,7 @@ "optional": true }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/georadiusbymember.json b/src/commands/georadiusbymember.json index c7a399fc3..fbc7ea4ee 100644 --- a/src/commands/georadiusbymember.json +++ b/src/commands/georadiusbymember.json @@ -136,7 +136,7 @@ "optional": true }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ @@ -172,14 +172,16 @@ }, { "token": "STORE", - "name": "key", + "name": "storekey", + "display": "key", "type": "key", "key_spec_index": 1, "optional": true }, { "token": "STOREDIST", - "name": "key", + "name": "storedistkey", + "display": "key", "type": "key", "key_spec_index": 2, "optional": true diff --git a/src/commands/georadiusbymember_ro.json b/src/commands/georadiusbymember_ro.json index 2a7683897..062a72ab2 100644 --- a/src/commands/georadiusbymember_ro.json +++ b/src/commands/georadiusbymember_ro.json @@ -96,7 +96,7 @@ "optional": true }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/geosearch.json b/src/commands/geosearch.json index a83dcaadb..e69094df4 100644 --- a/src/commands/geosearch.json +++ b/src/commands/geosearch.json @@ -49,7 +49,7 @@ }, { "token": "FROMLONLAT", - "name": "longitude_latitude", + "name": "fromlonlat", "type": "block", "arguments": [ { @@ -166,7 +166,7 @@ ] }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ @@ -203,4 +203,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/commands/geosearchstore.json b/src/commands/geosearchstore.json index 16db5d37e..1be5cd409 100644 --- a/src/commands/geosearchstore.json +++ b/src/commands/geosearchstore.json @@ -73,7 +73,7 @@ }, { "token": "FROMLONLAT", - "name": "longitude_latitude", + "name": "fromlonlat", "type": "block", "arguments": [ { @@ -190,7 +190,7 @@ ] }, { - "name": "count", + "name": "count-block", "type": "block", "optional": true, "arguments": [ @@ -215,4 +215,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/commands/hello.json b/src/commands/hello.json index 8e80a81cf..675edff5b 100644 --- a/src/commands/hello.json +++ b/src/commands/hello.json @@ -36,7 +36,7 @@ }, { "token": "AUTH", - "name": "username_password", + "name": "auth", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/hmset.json b/src/commands/hmset.json index 2e962d946..1fda1b2b4 100644 --- a/src/commands/hmset.json +++ b/src/commands/hmset.json @@ -46,7 +46,7 @@ "key_spec_index": 0 }, { - "name": "field_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/hset.json b/src/commands/hset.json index ee5efa78b..1b665c369 100644 --- a/src/commands/hset.json +++ b/src/commands/hset.json @@ -47,7 +47,7 @@ "key_spec_index": 0 }, { - "name": "field_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/lcs.json b/src/commands/lcs.json index 193e6a877..8d53e425e 100644 --- a/src/commands/lcs.json +++ b/src/commands/lcs.json @@ -57,7 +57,7 @@ }, { "token": "MINMATCHLEN", - "name": "len", + "name": "min-match-len", "type": "integer", "optional": true }, diff --git a/src/commands/migrate.json b/src/commands/migrate.json index b9a52aa69..64bf78bba 100644 --- a/src/commands/migrate.json +++ b/src/commands/migrate.json @@ -87,7 +87,7 @@ "type": "integer" }, { - "name": "key_or_empty_string", + "name": "key-selector", "type": "oneof", "arguments": [ { @@ -96,7 +96,7 @@ "key_spec_index": 0 }, { - "name": "empty_string", + "name": "empty-string", "type": "pure-token", "token": "\"\"" } @@ -131,16 +131,15 @@ "arguments": [ { "token": "AUTH", - "name": "password", + "name": "auth", + "display": "password", "type": "string", - "optional": true, "since": "4.0.7" }, { "token": "AUTH2", - "name": "username_password", + "name": "auth2", "type": "block", - "optional": true, "since": "6.0.0", "arguments": [ { @@ -157,7 +156,8 @@ }, { "token": "KEYS", - "name": "key", + "name": "keys", + "display": "key", "type": "key", "key_spec_index": 1, "optional": true, @@ -166,4 +166,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/commands/module-loadex.json b/src/commands/module-loadex.json index 97e8f2b58..9419aa010 100644 --- a/src/commands/module-loadex.json +++ b/src/commands/module-loadex.json @@ -39,16 +39,10 @@ { "name": "args", "token": "ARGS", - "type": "block", + "type": "string", "multiple": true, - "optional": true, - "arguments": [ - { - "name": "arg", - "type": "string" - } - ] + "optional": true } ] } -} \ No newline at end of file +} diff --git a/src/commands/mset.json b/src/commands/mset.json index 09b9d6d26..ebf3c5216 100644 --- a/src/commands/mset.json +++ b/src/commands/mset.json @@ -39,7 +39,7 @@ ], "arguments": [ { - "name": "key_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/msetnx.json b/src/commands/msetnx.json index 544ac6450..84ec00063 100644 --- a/src/commands/msetnx.json +++ b/src/commands/msetnx.json @@ -39,7 +39,7 @@ ], "arguments": [ { - "name": "key_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/psubscribe.json b/src/commands/psubscribe.json index 707fdf45c..8a1e66e08 100644 --- a/src/commands/psubscribe.json +++ b/src/commands/psubscribe.json @@ -16,14 +16,8 @@ "arguments": [ { "name": "pattern", - "type": "block", - "multiple": true, - "arguments": [ - { - "name": "pattern", - "type": "pattern" - } - ] + "type": "pattern", + "multiple": true } ] } diff --git a/src/commands/script-flush.json b/src/commands/script-flush.json index b246bdef5..f4d340833 100644 --- a/src/commands/script-flush.json +++ b/src/commands/script-flush.json @@ -25,7 +25,7 @@ ], "arguments": [ { - "name": "async", + "name": "flush-type", "type": "oneof", "optional": true, "since": "6.2.0", diff --git a/src/commands/sentinel-config.json b/src/commands/sentinel-config.json index 74bcdbd50..3c1898d5a 100644 --- a/src/commands/sentinel-config.json +++ b/src/commands/sentinel-config.json @@ -14,11 +14,11 @@ ], "arguments": [ { - "name":"set_or_get", + "name":"action", "type":"oneof", "arguments":[ { - "name":"set_param_value", + "name":"set", "token":"SET", "type":"block", "multiple":true, @@ -36,7 +36,8 @@ { "token":"GET", "multiple":true, - "name":"parameter", + "name":"get", + "display":"parameter", "type":"string" } ] diff --git a/src/commands/sentinel-debug.json b/src/commands/sentinel-debug.json index b3335409d..8328c45b8 100644 --- a/src/commands/sentinel-debug.json +++ b/src/commands/sentinel-debug.json @@ -14,7 +14,7 @@ ], "arguments": [ { - "name": "parameter_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/sentinel-set.json b/src/commands/sentinel-set.json index afe036065..49feefced 100644 --- a/src/commands/sentinel-set.json +++ b/src/commands/sentinel-set.json @@ -18,7 +18,7 @@ "type": "string" }, { - "name": "option_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/shutdown.json b/src/commands/shutdown.json index 63da3ca03..001cc2552 100644 --- a/src/commands/shutdown.json +++ b/src/commands/shutdown.json @@ -23,7 +23,7 @@ ], "arguments": [ { - "name": "nosave_save", + "name": "save-selector", "type": "oneof", "optional": true, "arguments": [ diff --git a/src/commands/sort.json b/src/commands/sort.json index 3f077e0e5..1c332461b 100644 --- a/src/commands/sort.json +++ b/src/commands/sort.json @@ -71,14 +71,15 @@ }, { "token": "BY", - "name": "pattern", + "name": "by-pattern", + "display": "pattern", "type": "pattern", "key_spec_index": 1, "optional": true }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ @@ -94,7 +95,8 @@ }, { "token": "GET", - "name": "pattern", + "name": "get-pattern", + "display": "pattern", "key_spec_index": 1, "type": "pattern", "optional": true, diff --git a/src/commands/sort_ro.json b/src/commands/sort_ro.json index 83b48d1b3..0b00ba8ad 100644 --- a/src/commands/sort_ro.json +++ b/src/commands/sort_ro.json @@ -57,14 +57,15 @@ }, { "token": "BY", - "name": "pattern", + "name": "by-pattern", + "display": "pattern", "type": "pattern", "key_spec_index": 1, "optional": true }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ @@ -80,7 +81,8 @@ }, { "token": "GET", - "name": "pattern", + "name": "get-pattern", + "display": "pattern", "key_spec_index": 1, "type": "pattern", "optional": true, diff --git a/src/commands/xadd.json b/src/commands/xadd.json index e8914ebb3..f3d99f841 100644 --- a/src/commands/xadd.json +++ b/src/commands/xadd.json @@ -114,22 +114,22 @@ ] }, { - "name": "id_or_auto", + "name": "id-selector", "type": "oneof", "arguments": [ { - "name": "auto_id", + "name": "auto-id", "type": "pure-token", "token": "*" }, { - "name": "ID", + "name": "id", "type": "string" } ] }, { - "name": "field_value", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/xclaim.json b/src/commands/xclaim.json index 045610900..132a60c2e 100644 --- a/src/commands/xclaim.json +++ b/src/commands/xclaim.json @@ -90,7 +90,7 @@ "optional": true }, { - "name": "id", + "name": "lastid", "token": "LASTID", "type": "string", "optional": true diff --git a/src/commands/xgroup-create.json b/src/commands/xgroup-create.json index 2b1ee03b4..54aceb8f5 100644 --- a/src/commands/xgroup-create.json +++ b/src/commands/xgroup-create.json @@ -51,15 +51,15 @@ "type": "string" }, { - "name": "id", + "name": "id-selector", "type": "oneof", "arguments": [ { - "name": "ID", + "name": "id", "type": "string" }, { - "name": "new_id", + "name": "new-id", "type": "pure-token", "token": "$" } @@ -73,7 +73,7 @@ }, { "token": "ENTRIESREAD", - "name": "entries_read", + "name": "entries-read", "type": "integer", "optional": true } diff --git a/src/commands/xgroup-setid.json b/src/commands/xgroup-setid.json index af4b83c19..a065f75fd 100644 --- a/src/commands/xgroup-setid.json +++ b/src/commands/xgroup-setid.json @@ -50,22 +50,23 @@ "type": "string" }, { - "name": "id", + "name": "id-selector", "type": "oneof", "arguments": [ { - "name": "ID", + "name": "id", "type": "string" }, { - "name": "new_id", + "name": "new-id", "type": "pure-token", "token": "$" } ] }, { - "name": "entries_read", + "name": "entriesread", + "display": "entries-read", "token": "ENTRIESREAD", "type": "integer", "optional": true diff --git a/src/commands/xinfo-stream.json b/src/commands/xinfo-stream.json index 36c427fbe..233afdde3 100644 --- a/src/commands/xinfo-stream.json +++ b/src/commands/xinfo-stream.json @@ -50,11 +50,15 @@ "key_spec_index": 0 }, { - "name": "full", - "token": "FULL", + "name": "full-block", "type": "block", "optional": true, "arguments": [ + { + "name": "full", + "token": "FULL", + "type": "pure-token" + }, { "token": "COUNT", "name": "count", diff --git a/src/commands/xreadgroup.json b/src/commands/xreadgroup.json index a14814755..e160f3d00 100644 --- a/src/commands/xreadgroup.json +++ b/src/commands/xreadgroup.json @@ -38,7 +38,7 @@ "arguments": [ { "token": "GROUP", - "name": "group_consumer", + "name": "group-block", "type": "block", "arguments": [ { diff --git a/src/commands/xsetid.json b/src/commands/xsetid.json index 7654784e1..5fbc1c6f3 100644 --- a/src/commands/xsetid.json +++ b/src/commands/xsetid.json @@ -51,13 +51,13 @@ "type": "string" }, { - "name": "entries_added", + "name": "entries-added", "token": "ENTRIESADDED", "type": "integer", "optional": true }, { - "name": "max_deleted_entry_id", + "name": "max-deleted-id", "token": "MAXDELETEDID", "type": "string", "optional": true diff --git a/src/commands/zadd.json b/src/commands/zadd.json index 300db1180..43791deb4 100644 --- a/src/commands/zadd.json +++ b/src/commands/zadd.json @@ -105,7 +105,7 @@ "since": "3.0.2" }, { - "name": "score_member", + "name": "data", "type": "block", "multiple": true, "arguments": [ diff --git a/src/commands/zrange.json b/src/commands/zrange.json index 63fb01a09..628be8bfe 100644 --- a/src/commands/zrange.json +++ b/src/commands/zrange.json @@ -79,7 +79,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "since": "6.2.0", diff --git a/src/commands/zrangebylex.json b/src/commands/zrangebylex.json index 75e82bce6..1f2c755c9 100644 --- a/src/commands/zrangebylex.json +++ b/src/commands/zrangebylex.json @@ -53,7 +53,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/zrangebyscore.json b/src/commands/zrangebyscore.json index d0678776e..44650d32f 100644 --- a/src/commands/zrangebyscore.json +++ b/src/commands/zrangebyscore.json @@ -66,7 +66,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/zrangestore.json b/src/commands/zrangestore.json index 25d9dd76e..2e4c85583 100644 --- a/src/commands/zrangestore.json +++ b/src/commands/zrangestore.json @@ -95,7 +95,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/zrevrangebylex.json b/src/commands/zrevrangebylex.json index 34faa93ae..07bad6178 100644 --- a/src/commands/zrevrangebylex.json +++ b/src/commands/zrevrangebylex.json @@ -53,7 +53,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ diff --git a/src/commands/zrevrangebyscore.json b/src/commands/zrevrangebyscore.json index 9a0152cfe..9e0bab096 100644 --- a/src/commands/zrevrangebyscore.json +++ b/src/commands/zrevrangebyscore.json @@ -65,7 +65,7 @@ }, { "token": "LIMIT", - "name": "offset_count", + "name": "limit", "type": "block", "optional": true, "arguments": [ diff --git a/src/module.c b/src/module.c index 43394e2f2..d915b56a1 100644 --- a/src/module.c +++ b/src/module.c @@ -1927,6 +1927,7 @@ static struct redisCommandArg *moduleCopyCommandArgs(RedisModuleCommandArg *args if (arg->summary) realargs[j].summary = zstrdup(arg->summary); if (arg->since) realargs[j].since = zstrdup(arg->since); if (arg->deprecated_since) realargs[j].deprecated_since = zstrdup(arg->deprecated_since); + if (arg->display_text) realargs[j].display_text = zstrdup(arg->display_text); realargs[j].flags = moduleConvertArgFlags(arg->flags); if (arg->subargs) realargs[j].subargs = moduleCopyCommandArgs(arg->subargs, version); } @@ -11046,6 +11047,7 @@ void moduleFreeArgs(struct redisCommandArg *args, int num_args) { zfree((char *)args[j].summary); zfree((char *)args[j].since); zfree((char *)args[j].deprecated_since); + zfree((char *)args[j].display_text); if (args[j].subargs) { moduleFreeArgs(args[j].subargs, args[j].num_args); diff --git a/src/redismodule.h b/src/redismodule.h index 51d22dd52..046677eed 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -326,6 +326,7 @@ typedef struct RedisModuleCommandArg { int flags; /* The REDISMODULE_CMD_ARG_* macros. */ const char *deprecated_since; struct RedisModuleCommandArg *subargs; + const char *display_text; } RedisModuleCommandArg; typedef struct { diff --git a/src/server.c b/src/server.c index 4b8cfbad7..3456f06c9 100644 --- a/src/server.c +++ b/src/server.c @@ -4514,6 +4514,7 @@ void addReplyCommandArgList(client *c, struct redisCommandArg *args, int num_arg addReplyArrayLen(c, num_args); for (int j = 0; j