YUKI Hiroshi
null+****@clear*****
Sat Jun 28 03:30:41 JST 2014
YUKI Hiroshi 2014-06-28 03:30:41 +0900 (Sat, 28 Jun 2014) New Revision: 40ebba6ef8e0d470e24e99ec814c18f59c3194ba https://github.com/droonga/droonga-engine/commit/40ebba6ef8e0d470e24e99ec814c18f59c3194ba Message: Reduce needless option Modified files: bin/droonga-engine-absorb-data Modified: bin/droonga-engine-absorb-data (+8 -13) =================================================================== --- bin/droonga-engine-absorb-data 2014-06-28 03:27:30 +0900 (32d6fe1) +++ bin/droonga-engine-absorb-data 2014-06-28 03:30:41 +0900 (3e41cf7) @@ -24,42 +24,37 @@ require "droonga/catalog_generator" require "droonga/data_absorber" options = OpenStruct.new -options.dataset = Droonga::CatalogGenerator::DEFAULT_DATASET options.drndump = "drndump" options.client = "droonga-request" parser = OptionParser.new parser.version = Droonga::Engine::VERSION parser.separator("") -parser.separator("Source:") +parser.separator("Connection:") parser.on("--source-host=HOST", "Host name of the source cluster to be connected.") do |host| options.source_host = host end -parser.on("--source-port=PORT", Integer, - "Port number of the source cluster to be connected.") do |port| - options.port = port -end - -parser.separator("") -parser.separator("Destination:") parser.on("--destination-host=HOST", "Host name of this cluster to be connected.") do |host| options.destination_host = host end -parser.on("--destination-port=PORT", Integer, - "Port number of this cluster to be connected.") do |port| +parser.on("--port=PORT", Integer, + "Port number of the source cluster to be connected.", + "(#{Droonga::CatalogGenerator::DEFAULT_PORT})") do |port| options.port = port end parser.separator("") parser.separator("Data:") parser.on("--tag=TAG", - "Tag name to be used to communicate with Droonga system.") do |tag| + "Tag name to be used to communicate with Droonga system.", + "(#{Droonga::CatalogGenerator::DEFAULT_TAG})") do |tag| options.tag = tag end parser.on("--dataset=DATASET", - "Dataset to be absorbed.") do |dataset| + "Dataset to be absorbed.", + "(#{Droonga::CatalogGenerator::DEFAULT_DATASET})") do |dataset| options.dataset = dataset end -------------- next part -------------- HTML����������������������������... 다운로드