diff --git a/src/redis-cli.c b/src/redis-cli.c index 9305036be..fa9dc5476 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -777,35 +777,35 @@ static void usage() { "redis-cli %s\n" "\n" "Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]\n" -" -h Server hostname (default: 127.0.0.1)\n" -" -p Server port (default: 6379)\n" -" -s Server socket (overrides hostname and port)\n" -" -a Password to use when connecting to the server\n" -" -r Execute specified command N times\n" +" -h Server hostname (default: 127.0.0.1).\n" +" -p Server port (default: 6379).\n" +" -s Server socket (overrides hostname and port).\n" +" -a Password to use when connecting to the server.\n" +" -r Execute specified command N times.\n" " -i When -r is used, waits seconds per command.\n" -" It is possible to specify sub-second times like -i 0.1\n" -" -n Database number\n" -" -x Read last argument from STDIN\n" -" -d Multi-bulk delimiter in for raw formatting (default: \\n)\n" -" -c Enable cluster mode (follow -ASK and -MOVED redirections)\n" +" It is possible to specify sub-second times like -i 0.1.\n" +" -n Database number.\n" +" -x Read last argument from STDIN.\n" +" -d Multi-bulk delimiter in for raw formatting (default: \\n).\n" +" -c Enable cluster mode (follow -ASK and -MOVED redirections).\n" " --raw Use raw formatting for replies (default when STDOUT is\n" -" not a tty)\n" -" --csv Output in CSV format\n" -" --latency Enter a special mode continuously sampling latency\n" +" not a tty).\n" +" --csv Output in CSV format.\n" +" --latency Enter a special mode continuously sampling latency.\n" " --latency-history Like --latency but tracking latency changes over time.\n" " Default time interval is 15 sec. Change it using -i.\n" -" --slave Simulate a slave showing commands received from the master\n" +" --slave Simulate a slave showing commands received from the master.\n" " --rdb Transfer an RDB dump from remote server to local file.\n" -" --pipe Transfer raw Redis protocol from stdin to server\n" -" --pipe-timeout In --pipe mode, abort with error if after sending all data\n" +" --pipe Transfer raw Redis protocol from stdin to server.\n" +" --pipe-timeout In --pipe mode, abort with error if after sending all data.\n" " no reply is received within seconds.\n" " Default timeout: %d. Use 0 to wait forever.\n" -" --bigkeys Sample Redis keys looking for big keys\n" -" --scan List all keys using the SCAN command\n" -" --pattern Useful with --scan to specify a SCAN pattern\n" -" --eval Send an EVAL command using the Lua script at \n" -" --help Output this help and exit\n" -" --version Output version and exit\n" +" --bigkeys Sample Redis keys looking for big keys.\n" +" --scan List all keys using the SCAN command.\n" +" --pattern Useful with --scan to specify a SCAN pattern.\n" +" --eval Send an EVAL command using the Lua script at .\n" +" --help Output this help and exit.\n" +" --version Output version and exit.\n" "\n" "Examples:\n" " cat /etc/passwd | redis-cli -x set mypasswd\n" @@ -813,6 +813,8 @@ static void usage() { " redis-cli -r 100 lpush mylist x\n" " redis-cli -r 100 -i 1 info | grep used_memory_human:\n" " redis-cli --eval myscript.lua key1 key2 , arg1 arg2 arg3\n" +" redis-cli --scan --pattern '*:12345*'\n" +"\n" " (Note: when using --eval the comma separates KEYS[] from ARGV[] items)\n" "\n" "When no command is given, redis-cli starts in interactive mode.\n"