I'm using redis:6.0-rc-buster docker image with sha256:4ade0389cf0ef97d9d313052d6d62d51ee950271bfbb8134f393f112e71b2ea3

The new command line option is --user and --pass, but redis-cli --help gives -user and -pass

Expected result

redis-cli 5.9.101

Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]
  -h <hostname>      Server hostname (default: 127.0.0.1).
  -p <port>          Server port (default: 6379).
  -s <socket>        Server socket (overrides hostname and port).
  -a <password>      Password to use when connecting to the server.
                     You can also use the REDISCLI_AUTH environment
                     variable to pass this password more safely
                     (if both are used, this argument takes predecence).
  --user <username>  Used to send ACL style 'AUTH username pass'. Needs -a.
  --pass <password>  Alias of -a for consistency with the new --user option.

Actual result

redis-cli 5.9.101

Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]
  -h <hostname>      Server hostname (default: 127.0.0.1).
  -p <port>          Server port (default: 6379).
  -s <socket>        Server socket (overrides hostname and port).
  -a <password>      Password to use when connecting to the server.
                     You can also use the REDISCLI_AUTH environment
                     variable to pass this password more safely
                     (if both are used, this argument takes predecence).
  -user <username>   Used to send ACL style 'AUTH username pass'. Needs -a.
  -pass <password>   Alias of -a for consistency with the new --user option.

Comment From: lifubang

It has been fixed by #6882