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
27ed9da3
Commit
27ed9da3
authored
Jan 17, 2014
by
antirez
Browse files
Cluster: redis-trib help output format modified.
parent
a68c9ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
27ed9da3
...
@@ -964,13 +964,12 @@ def show_help
...
@@ -964,13 +964,12 @@ def show_help
puts
"Usage: redis-trib <command> <options> <arguments ...>
\n\n
"
puts
"Usage: redis-trib <command> <options> <arguments ...>
\n\n
"
COMMANDS
.
each
{
|
k
,
v
|
COMMANDS
.
each
{
|
k
,
v
|
o
=
""
o
=
""
puts
"
#{
k
.
ljust
(
10
)
}
#{
v
[
2
]
}
"
if
ALLOWED_OPTIONS
[
k
]
if
ALLOWED_OPTIONS
[
k
]
ALLOWED_OPTIONS
[
k
].
each
{
|
optname
,
has_arg
|
ALLOWED_OPTIONS
[
k
].
each
{
|
optname
,
has_arg
|
o
+=
"
--
#{
optname
}
"
+
(
has_arg
?
" <arg>"
:
""
)
+
" "
puts
"
--
#{
optname
}
"
+
(
has_arg
?
" <arg>"
:
""
)
}
}
end
end
o
=
"[
#{
o
.
strip
}
]"
if
o
.
length
>
0
puts
"
#{
k
.
ljust
(
10
)
}
#{
v
[
2
]
}
#{
o
}
"
}
}
puts
"
\n
For check, fix, reshard, delnode, you can specify host:port of any working node.
\n
"
puts
"
\n
For check, fix, reshard, delnode, you can specify host:port of any working node.
\n
"
end
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