Describe the bug
BITFIELD isn't in agreement with its COMMAND DOCS descriptor when missing a required argument.
To reproduce
BITFIELD mykey
(empty array)
Expected behavior
BITFIELD mykey
(error) ERR wrong number of arguments for 'bitfield' command
because the documentation and COMMAND DOCS descriptor both indicate at least one GET or SET must be specified.
My app that relies on the descriptor doesn't agree with redis-cli.
Additional information
Redis server v=7.0.8 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=8b9bd5cdb53a6549
Comment From: enjoy-binbin
thanks for the report, although I believe we should throw a error in that case, the argument became optional in #11445 we will release it in the next version (7.0.9). FYI @oranagra i added it in to the Redis 7.0 Backport
Comment From: oranagra
thanks. so as stated, that's already fixed and will be included in the next release. closing the issue.