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

This commit is contained in:
antirez 2011-12-01 12:18:22 +01:00
parent 39ca1713d7
commit 4c8bd905a0

View File

@ -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)) {