From 27ed9da3834850233d6a793556f06ce9d6834c1b Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 17 Jan 2014 12:32:49 +0100 Subject: [PATCH] Cluster: redis-trib help output format modified. --- src/redis-trib.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 462dad32e..1f052c305 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -964,13 +964,12 @@ def show_help puts "Usage: redis-trib \n\n" COMMANDS.each{|k,v| o = "" + puts " #{k.ljust(10)} #{v[2]}" if ALLOWED_OPTIONS[k] ALLOWED_OPTIONS[k].each{|optname,has_arg| - o += "--#{optname}" + (has_arg ? " " : "") + " " + puts " --#{optname}" + (has_arg ? " " : "") } end - o = "[#{o.strip}]" if o.length > 0 - puts " #{k.ljust(10)} #{v[2]} #{o}" } puts "\nFor check, fix, reshard, delnode, you can specify host:port of any working node.\n" end