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
6a95ddb2
Commit
6a95ddb2
authored
Feb 25, 2014
by
antirez
Browse files
redis-cli: check argument existence for --pattern.
parent
2431b63f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
6a95ddb2
...
...
@@ -732,7 +732,7 @@ static int parseOptions(int argc, char **argv) {
config
.
stat_mode
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"--scan"
))
{
config
.
scan_mode
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"--pattern"
))
{
}
else
if
(
!
strcmp
(
argv
[
i
],
"--pattern"
)
&&
!
lastarg
)
{
config
.
pattern
=
argv
[
++
i
];
}
else
if
(
!
strcmp
(
argv
[
i
],
"--intrinsic-latency"
)
&&
!
lastarg
)
{
config
.
intrinsic_latency_mode
=
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