]> git.saurik.com Git - redis.git/commitdiff
usage information updated to reflect the new way to pass options to Redis from the...
authorantirez <antirez@gmail.com>
Thu, 1 Dec 2011 12:50:36 +0000 (13:50 +0100)
committerantirez <antirez@gmail.com>
Thu, 1 Dec 2011 12:50:36 +0000 (13:50 +0100)
src/redis.c

index 839711381e6f107b28dcab5fc1997e080c7a67f3..b067b75fe66b85dd1ab0410b1a39107fdf8d8e42 100644 (file)
@@ -1856,8 +1856,16 @@ void version() {
 }
 
 void usage() {
 }
 
 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 - (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);
 }
 
     exit(1);
 }