mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Refactor redis-trib.rb
This commit is contained in:
parent
a5998d1fda
commit
16f65068b0
@ -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|
|
||||||
|
Loading…
Reference in New Issue
Block a user