Describe the bug
BITCOUNT is documented as
BITCOUNT key [start end [BYTE | BIT]]
When start is specified but end is missing (a syntax error), the command returns ERR syntax error when the key exists, but returns 0 if the key is missing.
To reproduce
$ redis-server --version
Redis server v=7.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=2260280010e18db8
BITCOUNT missing 0
Expected behavior
ERR syntax error when end is missing, irrespective of whether the key exists or not.
Comment From: enjoy-binbin
thanks for the report, bitpos also has this problem