diff options
author | guybe7 <guy.benoish@redislabs.com> | 2022-04-13 10:33:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 11:33:36 +0300 |
commit | e875ff89ece5ec9d43273b19e3b88e4d36a48ba9 (patch) | |
tree | db56de746328407f8f7919faffa3d3190afb0209 /utils | |
parent | bd8da0ca29b161e5bd47a6a98ce0a7a232ccda90 (diff) | |
download | redis-e875ff89ece5ec9d43273b19e3b88e4d36a48ba9.tar.gz |
Add the deprecated_since field in command args of COMMAND DOCS (#10545)
Apparently, some modules can afford deprecating command arguments
(something that was never done in Redis, AFAIK), so in order to represent
this piece of information, we added the `deprecated_since` field to redisCommandArg
(in symmetry to the already existing `since` field).
This commit adds `const char *deprecated_since` to `RedisModuleCommandArg`,
which is technically a breaking change, but since 7.0 was not released yet, we decided to let it slide
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/generate-command-code.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/generate-command-code.py b/utils/generate-command-code.py index 2a4bd5ccc..c5c08e196 100755 --- a/utils/generate-command-code.py +++ b/utils/generate-command-code.py @@ -175,6 +175,8 @@ class Argument(object): get_optional_desc_string(self.desc, "since"), _flags_code(), ) + if "deprecated_since" in self.desc: + s += ",.deprecated_since=\"%s\"" % self.desc["deprecated_since"] if self.subargs: s += ",.subargs=%s" % self.subarg_table_name() |