root@16bf0bc5a29e:/data# redis-cli --pass 123456
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.

Comment From: glennit

oh I see a related pull request https://github.com/redis/redis/pull/8897

Comment From: enjoy-binbin

--pass is an alias for -a @glennit maybe i should reopen it? @oranagra

Comment From: glennit

Don't worry. I realize i am using redis5.0. And there is no plan to upgrade the version...

Comment From: oranagra

IMOH since -a is an alias for --pass i don't see why it should be explicitly mentioned. we could instead make the warning message more generic and avoid mentioning both -a and -u. i.e. something like "Warning: Passing passwords in command line interface may not be safe". I suppose there's no harm in being a bit more verbose and refer to -a, but i'm not sure we need to start naming the long notation aliases. p.s. sorry for being late, for some reason i didn't get a notification on my mention here.