From 9268a5b5fd4f1824dad767c71188b90e44281551 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 1 Dec 2011 13:50:36 +0100 Subject: [PATCH] usage information updated to reflect the new way to pass options to Redis from the command line. --- src/redis.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 83971138..b067b75f 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1856,8 +1856,16 @@ void version() { } void usage() { - fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf]\n"); + fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf] [options]\n"); fprintf(stderr," ./redis-server - (read config from stdin)\n"); + fprintf(stderr," ./redis-server -v or --version\n"); + fprintf(stderr," ./redis-server -h or --help\n\n"); + fprintf(stderr,"Examples:\n"); + fprintf(stderr," ./redis-server (run the server with default conf)\n"); + fprintf(stderr," ./redis-server /etc/redis/6379.conf\n"); + fprintf(stderr," ./redis-server --port 7777\n"); + fprintf(stderr," ./redis-server --port 7777 --slaveof 127.0.0.1 8888\n"); + fprintf(stderr," ./redis-server /etc/myredis.conf --loglevel verbose\n"); exit(1); } -- 2.45.2