Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4c8bd905
Commit
4c8bd905
authored
Dec 01, 2011
by
antirez
Browse files
-h is now alias for --help when running redis-server.
parent
39ca1713
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
4c8bd905
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment