Commit 4c8bd905 authored by antirez's avatar antirez
Browse files

-h is now alias for --help when running redis-server.

parent 39ca1713
...@@ -2011,7 +2011,8 @@ int main(int argc, char **argv) { ...@@ -2011,7 +2011,8 @@ int main(int argc, char **argv) {
if (argc == 2) { if (argc == 2) {
if (strcmp(argv[1], "-v") == 0 || if (strcmp(argv[1], "-v") == 0 ||
strcmp(argv[1], "--version") == 0) version(); strcmp(argv[1], "--version") == 0) version();
if (strcmp(argv[1], "--help") == 0) usage(); if (strcmp(argv[1], "--help") == 0 ||
strcmp(argv[1], "-h") == 0) usage();
resetServerSaveParams(); resetServerSaveParams();
loadServerConfig(argv[1]); loadServerConfig(argv[1]);
} else if ((argc > 2)) { } else if ((argc > 2)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment