Mohammed Morsi
2009-Jun-10 18:05 UTC
[Ovirt-devel] [PATCH server] small fix to optionparser call to allow port arg to accept an int
--- src/vnc-proxy/vnc-proxy.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/vnc-proxy/vnc-proxy.rb b/src/vnc-proxy/vnc-proxy.rb index a411d69..73327bb 100755 --- a/src/vnc-proxy/vnc-proxy.rb +++ b/src/vnc-proxy/vnc-proxy.rb @@ -63,7 +63,7 @@ class VncProxy opts.on("-n", "--nodaemon", "Run interactively (useful for debugging)") do |n| do_daemon = false end - opts.on("-p", "--port", "Port to listen on") do |n| + opts.on("-p", "--port [port]", "Port to listen on") do |n| port = n.to_i end end -- 1.6.0.6
Scott Seago
2009-Jun-17 19:19 UTC
[Ovirt-devel] Re: [PATCH server] small fix to optionparser call to allow port arg to accept an int
Mohammed Morsi wrote:> --- > src/vnc-proxy/vnc-proxy.rb | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/vnc-proxy/vnc-proxy.rb b/src/vnc-proxy/vnc-proxy.rb > index a411d69..73327bb 100755 > --- a/src/vnc-proxy/vnc-proxy.rb > +++ b/src/vnc-proxy/vnc-proxy.rb > @@ -63,7 +63,7 @@ class VncProxy > opts.on("-n", "--nodaemon", "Run interactively (useful for debugging)") do |n| > do_daemon = false > end > - opts.on("-p", "--port", "Port to listen on") do |n| > + opts.on("-p", "--port [port]", "Port to listen on") do |n| > port = n.to_i > end > end >ACK