lib/envoy/client/option_parser.rb in envoy-proxy-0.2.0 vs lib/envoy/client/option_parser.rb in envoy-proxy-0.2.2

- old
+ new

@@ -4,14 +4,17 @@ { "server_host" => 'p45.eu', "server_port" => "8282", "local_host" => '127.0.0.1', "tls" => false, - "verbose" => false, + "verbosity" => 3, "version" => Envoy::VERSION, "delay" => 1, - "dir" => "." + "dir" => ".", + "timestamps" => false, + "show_log_level" => true, + "color_log_level" => true, } end def parse_options options = default_options @@ -29,9 +32,15 @@ options["server_host"] = host options["server_port"] ||= port end op.on "-c COMMAND", "Run this command" do |v| options["command"] = v + end + op.on "-v", "--verbose", "Show messages. Repeat to show more." do + options["verbosity"] += 1 + end + op.on "-q", "--quiet", "Hide messages. Repeat to hide more." do + options["verbosity"] -= 1 end op.on "-h", "--help", "Show this message" do puts op exit end