From: antirez Date: Thu, 1 Dec 2011 11:18:22 +0000 (+0100) Subject: -h is now alias for --help when running redis-server. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/4c8bd905a0751c19279c98d2dbd681a08297e38e?hp=39ca1713d7400cf33e2cbc502478055a78cc03c1 -h is now alias for --help when running redis-server. --- 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)) {