1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-11-05 04:56:17 +01:00

Add usage output

This commit is contained in:
cn 2013-02-25 19:58:43 +01:00
parent 91708da841
commit db7ffc7878

4
status.rb Normal file → Executable file
View File

@ -68,4 +68,8 @@ class OpenVPNStatusWeb
end end
end end
if ARGV.length != 4
puts "Usage: status.rb vpn-name status-log listen-host listen-port"
else
Rack::Handler::Mongrel.run OpenVPNStatusWeb.new(ARGV[0], ARGV[1]), :Host => ARGV[2], :Port => ARGV[3] Rack::Handler::Mongrel.run OpenVPNStatusWeb.new(ARGV[0], ARGV[1]), :Host => ARGV[2], :Port => ARGV[3]
end