lib/gizzmo.rb in gizzmo-0.12.0 vs lib/gizzmo.rb in gizzmo-0.12.1
- old
+ new
@@ -315,11 +315,11 @@
opts.on("--shards", "Show topology by root shard ids instead of counts") do
subcommand_options.root_shards = true
end
end,
'transform-tree' => OptionParser.new do |opts|
- opts.banner = "Usage: #{zero} transform-tree [options] ROOT_SHARD_ID TEMPLATE"
+ opts.banner = "Usage: #{zero} transform-tree [options] TEMPLATE ROOT_SHARD_ID"
separators(opts, DOC_STRINGS['transform-tree'])
add_scheduler_opts subcommand_options, opts
opts.on("-q", "--quiet", "Do not display transformation info (only valid with --force)") do
@@ -390,11 +390,11 @@
opts.separator "You may find it useful to create a ~/.gizzmorc file, which is simply YAML"
opts.separator "key/value pairs corresponding to options you want by default. A common .gizzmorc"
opts.separator "simply contains:"
opts.separator ""
opts.separator " hosts: localhost"
- opts.separator " port: 7917"
+ opts.separator " port: 7920"
opts.separator ""
opts.separator "Subcommands:"
subcommands.keys.compact.sort.each do |sc|
base = " #{sc}"
if doc = DOC_STRINGS[sc]
@@ -545,7 +545,8 @@
rescue Errno::EPIPE
# This is just us trying to puts into a closed stdout. For example, if you pipe into
# head -1, then this script will keep running after head closes. We don't care, and
# seeing the backtrace is annoying!
rescue Interrupt
+ STDERR.puts "\nERROR: Received an unhandled interrupt"
exit 1
end