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
1b2bcd42
Commit
1b2bcd42
authored
Feb 25, 2014
by
antirez
Browse files
redis-cli: check argument existence for --pattern.
parent
6ec3dc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
1b2bcd42
...
...
@@ -731,7 +731,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