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
1087227d
Commit
1087227d
authored
Apr 13, 2011
by
antirez
Browse files
redis-trib: show list of commands
parent
e9ee513b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
1087227d
...
...
@@ -77,12 +77,17 @@ class RedisTrib
end
COMMANDS
=
{
"create-cluster"
=>
[
"create_cluster"
,
-
2
]
"create-cluster"
=>
[
"create_cluster"
,
-
2
,
"node1_addr node2_addr ..."
]
}
# Sanity check
if
ARGV
.
length
==
0
puts
"Usage: redis-trib <command> <arguments ...>"
puts
COMMANDS
.
each
{
|
k
,
v
|
puts
"
#{
k
.
ljust
(
20
)
}
#{
v
[
2
]
}
"
}
puts
exit
1
end
...
...
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