lib/envoy/client/command.rb in envoy-proxy-0.0.9 vs lib/envoy/client/command.rb in envoy-proxy-0.0.10
- old
+ new
@@ -33,10 +33,14 @@
end
op.on "-h", "--help", "Show this message" do
puts op
exit
end
+ op.on "--version" do
+ puts Envoy::VERSION
+ exit
+ end
op.parse!
case ARGV[0]
when /^(\d+)$/
options[:local_port] = $1
when /^(\[[^\]+]\]|[^:]+):(\d+)$/x
@@ -49,6 +53,6 @@
unless EM.reactor_running?
EM.run do
Envoy::Client::Trunk.start options
end
-end
+end
\ No newline at end of file