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
bde05e9c
Commit
bde05e9c
authored
Jun 28, 2018
by
dejun.xdj
Browse files
Avoid -Woverlength-strings compile warning.
Using another fprintf call to output the rest help message.
parent
0b74fd67
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
bde05e9c
...
@@ -1467,7 +1467,10 @@ static void usage(void) {
...
@@ -1467,7 +1467,10 @@ static void usage(void) {
" line interface.
\n
"
" line interface.
\n
"
" --help Output this help and exit.
\n
"
" --help Output this help and exit.
\n
"
" --version Output version and exit.
\n
"
" --version Output version and exit.
\n
"
"
\n
"
"
\n
"
,
version
,
REDIS_CLI_DEFAULT_PIPE_TIMEOUT
);
/* Using another fprintf call to avoid -Woverlength-strings compile warning */
fprintf
(
stderr
,
"Cluster Manager Commands:
\n
"
"Cluster Manager Commands:
\n
"
" Use --cluster help to list all available cluster manager commands.
\n
"
" Use --cluster help to list all available cluster manager commands.
\n
"
"
\n
"
"
\n
"
...
@@ -1484,8 +1487,7 @@ static void usage(void) {
...
@@ -1484,8 +1487,7 @@ static void usage(void) {
"When no command is given, redis-cli starts in interactive mode.
\n
"
"When no command is given, redis-cli starts in interactive mode.
\n
"
"Type
\"
help
\"
in interactive mode for information on available commands
\n
"
"Type
\"
help
\"
in interactive mode for information on available commands
\n
"
"and settings.
\n
"
"and settings.
\n
"
"
\n
"
,
"
\n
"
);
version
,
REDIS_CLI_DEFAULT_PIPE_TIMEOUT
);
sdsfree
(
version
);
sdsfree
(
version
);
exit
(
1
);
exit
(
1
);
}
}
...
...
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