From 4c8bd905a0751c19279c98d2dbd681a08297e38e Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 1 Dec 2011 12:18:22 +0100 Subject: [PATCH 1/1] -h is now alias for --help when running redis-server. --- src/redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 344c60c4..3c287756 100644 --- a/src/redis.c +++ b/src/redis.c @@ -2011,7 +2011,8 @@ int main(int argc, char **argv) { if (argc == 2) { if (strcmp(argv[1], "-v") == 0 || 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(); loadServerConfig(argv[1]); } else if ((argc > 2)) { -- 2.45.2