[Groonga-commit] droonga/droonga-engine at aa88abd [master] Rename options with "source" prefix

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jun 27 20:23:45 JST 2014


YUKI Hiroshi	2014-06-27 20:23:45 +0900 (Fri, 27 Jun 2014)

  New Revision: aa88abd01cfe0675566ceab3d7f0fadca21cbf42
  https://github.com/droonga/droonga-engine/commit/aa88abd01cfe0675566ceab3d7f0fadca21cbf42

  Message:
    Rename options with "source" prefix

  Modified files:
    bin/droonga-engine-absorb-data

  Modified: bin/droonga-engine-absorb-data (+8 -7)
===================================================================
--- bin/droonga-engine-absorb-data    2014-06-27 18:27:52 +0900 (1bb569e)
+++ bin/droonga-engine-absorb-data    2014-06-27 20:23:45 +0900 (69e0004)
@@ -33,19 +33,14 @@ client_options = []
 
 parser.separator("")
 parser.separator("Source:")
-parser.on("--host=HOST",
+parser.on("--source-host=HOST",
           "Host name of the soruce cluster to be connected.") do |host|
   drndump_options += ["--host", host]
 end
-parser.on("--port=PORT", Integer,
+parser.on("--source-port=PORT", Integer,
           "Port number of the soruce cluster to be connected.") do |port|
   drndump_options += ["--port", port.to_s]
 end
-parser.on("--tag=TAG",
-          "Tag name to be used to communicate with Droonga system.") do |tag|
-  drndump_options += ["--tag", tag]
-  client_options += ["--tag", tag]
-end
 
 parser.separator("")
 parser.separator("Destination:")
@@ -60,9 +55,15 @@ end
 
 parser.separator("")
 parser.separator("Data:")
+parser.on("--tag=TAG",
+          "Tag name to be used to communicate with Droonga system.") do |tag|
+  drndump_options += ["--tag", tag]
+  client_options += ["--tag", tag]
+end
 parser.on("--dataset=DATASET",
           "Dataset to be absorbed.") do |dataset|
   drndump_options += ["--dataset", dataset]
+  client_options += ["--tag", tag]
 end
 
 parser.separator("")
-------------- next part --------------
HTML����������������������������...
Télécharger 



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