examples/primes/lib/primes/cli.rb in royw-drbman-0.0.1 vs examples/primes/lib/primes/cli.rb in royw-drbman-0.0.2
- old
+ new
@@ -53,9 +53,15 @@
command_line.uses_switch('-q', '--quiet', 'Display error messages only')
end
builder.add_choice(:debug, :type => :boolean, :default => false) do |command_line|
command_line.uses_switch('-v', '--verbose', 'Display debug messages')
end
+ builder.add_choice(:leave, :type => :boolean, :default => false) do |command_line|
+ command_line.uses_switch('-l', '--leave', 'Leave files on host machines')
+ end
+ builder.add_choice(:ssh_debug, :type => :boolean, :default => false) do |command_line|
+ command_line.uses_switch('-s', '--ssh-debug', 'Display the ssh debug messages')
+ end
builder.add_choice(:hosts, :type => [:string], :default => []) do |command_line|
command_line.uses_option('-H', '--hosts "HOST,HOST"', 'Comma separated host machines, ex: "machine1{,machine2{,...}}"')
end
builder.add_choice(:port, :type => :integer, :default => 9000) do |command_line|
command_line.uses_option('-p', '--port PORT', "The starting port number to assign to the hosts.")