lib/gizzmo.rb in gizzmo-0.3.1 vs lib/gizzmo.rb in gizzmo-0.3.2

- old
+ new

@@ -179,11 +179,15 @@ unless subcommands.include?(subcommand_name) STDERR.puts "Subcommand not found: #{subcommand_name}" exit 1 end -log = global_options.log || "/tmp/gizzmo.log" +log = global_options.log || "./gizzmo.log" service = Gizzard::Thrift::ShardManager.new(global_options.host, global_options.port, log, global_options.dry) + +while !$stdin.tty? && line = STDIN.gets + argv << line.strip +end begin Gizzard::Command.run(subcommand_name, service, global_options, argv, subcommand_options) rescue HelpNeededError => e if e.class.name != e.message \ No newline at end of file