lib/rbfs/args.rb in rbfs-0.0.2 vs lib/rbfs/args.rb in rbfs-0.0.3
- old
+ new
@@ -14,14 +14,23 @@
options[:hosts] = v
end
opts.on("-r", "--root ROOT", "Root path to sync") do |v|
options[:root] = v
end
+ opts.on("-s", "--subpath PATH", "Subpath of root to sync") do |v|
+ options[:subpath] = v
+ end
opts.on("-v", "--[no-]verbose", "Print extra debugging info") do |v|
options[:verbose] = v
end
opts.on("-d", "--dry", "Test config settings") do |v|
options[:dry] = v
+ end
+ opts.on("-t", "--[no-]threaded", "Run all hosts concurrently") do |v|
+ options[:threaded] = v
+ end
+ opts.on("--timeout TIMEOUT", "Set I/O timeout") do |v|
+ options[:timeout] = v
end
end.parse!
options
end