YUKI Hiroshi
null+****@clear*****
Fri May 8 19:17:36 JST 2015
YUKI Hiroshi 2015-05-08 19:17:36 +0900 (Fri, 08 May 2015) New Revision: 3f5934e2b2278ae3a9feb28340d74ec05934204c https://github.com/droonga/droonga-engine/commit/3f5934e2b2278ae3a9feb28340d74ec05934204c Message: Brush up descriptions of command line options Modified files: bin/droonga-engine-catalog-generate bin/droonga-engine-catalog-modify Modified: bin/droonga-engine-catalog-generate (+1 -0) =================================================================== --- bin/droonga-engine-catalog-generate 2015-05-08 12:21:12 +0900 (1a8d7a9) +++ bin/droonga-engine-catalog-generate 2015-05-08 19:17:36 +0900 (a105c73) @@ -45,6 +45,7 @@ parser.version = Droonga::Engine::VERSION parser.on("--output=PATH", "The output path of generated catalog.json to be saved as.", "\"-\" means the standard output.", + "Any existing file at the specified path will be overwritten without confirmation.", "(#{options.output_path})") do |path| options.output_path = path end Modified: bin/droonga-engine-catalog-modify (+13 -7) =================================================================== --- bin/droonga-engine-catalog-modify 2015-05-08 12:21:12 +0900 (409cfd8) +++ bin/droonga-engine-catalog-modify 2015-05-08 19:17:36 +0900 (59e1adf) @@ -46,14 +46,15 @@ end parser = OptionParser.new parser.version = Droonga::Engine::VERSION parser.on("--source=PATH", - "Path to an existing catalog.json.", + "The path to the catalog.json to be modified.", "\"-\" means the standard input.", "(#{options.source_path})") do |path| options.source_path = path end parser.on("--output=PATH", - "Output catalog.json to PATH.", + "The output path of modified catalog.json to be saved as.", "\"-\" means the standard output.", + "Any existing file at the specified path will be overwritten without confirmation.", "(#{options.output_path})") do |path| options.output_path = path end @@ -63,21 +64,26 @@ parser.on("--[no-]update", options.update = update end parser.on("--dataset=NAME", - "Add a dataset its name is NAME.", - "And set the NAME to the current dataset.", + "The name of an existing dataset to be modified.", + "This can be specified multiple times to modify multiple datasets.", "(#{Droonga::Catalog::Generator::DEFAULT_DATASET})") do |name| current_dataset = datasets[name] = {} end parser.on("--replica-hosts=NAME1,NAME2,...", Array, - "Use given hosts as replicas for the current dataset.") do |hosts| + "Host names of engine nodes to be used as replicas in the dataset ", + "specified by the preceding --dataset option.", + "If you specify this option, all existing replica nodes ", + "defined in the dataset are replaced.") do |hosts| current_dataset[:replica_hosts] = hosts end parser.on("--add-replica-hosts=NAME1,NAME2,...", Array, - "Use given hosts to be added as replicas to the current dataset.") do |hosts| + "Host names of engine nodes to be added to the cluster as replicas, ", + "in the dataset specified by the preceding --dataset option.") do |hosts| current_dataset[:add_replica_hosts] = hosts end parser.on("--remove-replica-hosts=NAME1,NAME2,...", Array, - "Use given hosts to be removed as replicas from the current dataset.") do |hosts| + "Host names of engine nodes to be removed from the cluster, ", + "in the dataset specified by the preceding --dataset option.") do |hosts| current_dataset[:remove_replica_hosts] = hosts end parser.parse!(ARGV) -------------- next part -------------- HTML����������������������������...Download