[Groonga-commit] droonga/droonga-client-ruby at 6581cad [master] Remove "--[no-]exit-on-response" option.

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri May 8 10:54:26 JST 2015


YUKI Hiroshi	2015-05-08 10:54:26 +0900 (Fri, 08 May 2015)

  New Revision: 6581cad5c9d358ebdcadbaa12084e98d6904080d
  https://github.com/droonga/droonga-client-ruby/commit/6581cad5c9d358ebdcadbaa12084e98d6904080d

  Message:
    Remove "--[no-]exit-on-response" option.
    
    It seems to be designed to handle subscription type commands, but it should not be a job of the command.
    Subscription type commands should be processed by another command line tool "droonga-subscribe" or something.

  Modified files:
    bin/droonga-request

  Modified: bin/droonga-request (+1 -7)
===================================================================
--- bin/droonga-request    2015-05-07 19:31:39 +0900 (3370328)
+++ bin/droonga-request    2015-05-08 10:54:26 +0900 (b21d612)
@@ -29,7 +29,6 @@ options = {
   :protocol            => Droonga::Client::DEFAULT_PROTOCOL,
   :default_target_role => Droonga::Client::DEFAULT_TARGET_ROLE,
   :timeout             => 1,
-  :exit_on_response    => true,
   :receiver_host       => Droonga::Client::DEFAULT_HOST,
   :receiver_port       => 0,
   :report_request      => false,
@@ -72,11 +71,6 @@ parser.on("--timeout=TIMEOUT", Integer,
           "(#{options[:timeout]})") do |timeout|
   options[:timeout] = timeout
 end
-parser.on("--[no-]exit-on-response",
-          "Exits when just one response is received.",
-          "(#{options[:exit_on_response]})") do |exit_on_response|
-  options[:exit_on_response] = exit_on_response
-end
 parser.separator("")
 parser.separator("Droonga protocol:")
 parser.on("--receiver-host=HOST",
@@ -150,7 +144,7 @@ json_parser.on_parse_complete = lambda do |request_message|
     end
     message << "\n"
     print(message)
-    break if options[:exit_on_response]
+    break
   end
   request.wait
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index