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