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
bd01334d
Commit
bd01334d
authored
Aug 12, 2018
by
Jeffrey Lovitz
Browse files
CLI Help text loop verifies arg count
parent
39c70e72
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
bd01334d
...
@@ -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