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
83b8eaa6
Unverified
Commit
83b8eaa6
authored
Sep 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Sep 07, 2018
Browse files
Merge pull request #5239 from jeffreylovitz/cli-help-fix
CLI Help text loop verifies arg count
parents
a62b8410
bd01334d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
83b8eaa6
...
@@ -545,7 +545,7 @@ static void cliIntegrateHelp(void) {
...
@@ -545,7 +545,7 @@ static void cliIntegrateHelp(void) {
ch
->
params
=
sdscat
(
ch
->
params
,
"key "
);
ch
->
params
=
sdscat
(
ch
->
params
,
"key "
);
args
--
;
args
--
;
}
}
while
(
args
--
)
ch
->
params
=
sdscat
(
ch
->
params
,
"arg "
);
while
(
args
--
>
0
)
ch
->
params
=
sdscat
(
ch
->
params
,
"arg "
);
if
(
entry
->
element
[
1
]
->
integer
<
0
)
if
(
entry
->
element
[
1
]
->
integer
<
0
)
ch
->
params
=
sdscat
(
ch
->
params
,
"...options..."
);
ch
->
params
=
sdscat
(
ch
->
params
,
"...options..."
);
ch
->
summary
=
"Help not available"
;
ch
->
summary
=
"Help not available"
;
...
...
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