Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
25811bc9
Commit
25811bc9
authored
Nov 02, 2016
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 02, 2016
Browse files
Merge pull request #3547 from yyoshiki41/refactor/redis-trib
Refactor redis-trib.rb
parents
b3e70733
16f65068
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
25811bc9
...
@@ -1669,7 +1669,6 @@ ALLOWED_OPTIONS={
...
@@ -1669,7 +1669,6 @@ ALLOWED_OPTIONS={
def
show_help
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
=
""
puts
"
#{
k
.
ljust
(
15
)
}
#{
v
[
2
]
}
"
puts
"
#{
k
.
ljust
(
15
)
}
#{
v
[
2
]
}
"
if
ALLOWED_OPTIONS
[
k
]
if
ALLOWED_OPTIONS
[
k
]
ALLOWED_OPTIONS
[
k
].
each
{
|
optname
,
has_arg
|
ALLOWED_OPTIONS
[
k
].
each
{
|
optname
,
has_arg
|
...
...
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