提交 9531c848 编写于 作者: A antirez

Cluster: redis-trib help output improved.

Show options if any. Clarify that for some command any node address is
ok.
上级 0c373207
......@@ -857,12 +857,18 @@ ALLOWED_OPTIONS={
}
def show_help
puts "Usage: redis-trib <command> <options> <arguments ...>"
puts
puts "Usage: redis-trib <command> <options> <arguments ...>\n\n"
COMMANDS.each{|k,v|
puts " #{k.ljust(10)} #{v[2]}"
o = ""
if ALLOWED_OPTIONS[k]
ALLOWED_OPTIONS[k].each{|optname,has_arg|
o += "--#{optname}" + (has_arg ? " <arg>" : "") + " "
}
end
o = "[#{o.strip}]" if o.length > 0
puts " #{k.ljust(10)} #{v[2]} #{o}"
}
puts
puts "\nFor check, fix, reshard, you can specify host:port of any working node.\n"
end
# Sanity check
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册