Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also add parameters to the short forms. Fix bug on port parameter.

  • Loading branch information...
commit 374c1d796de62d67f060332bdaf13162fd22edb9 1 parent da0a264
@floere floere authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ricer
View
4 bin/ricer
@@ -7,11 +7,11 @@ options = { address: "0.0.0.0", port: 3000, rackup: "#{Dir.pwd}/config.ru" }
OptionParser.new do |opts|
opts.banner = "Usage: ricer [options]"
- opts.on "-a", "--address IP", "Address to listen on" do |a|
+ opts.on "-a IP", "--address IP", "Address to listen on" do |a|
options[:address] = a
end
- opts.on "-p", "--port PORT", "Port to listen on" do |a|
+ opts.on "-p PORT", "--port PORT", "Port to listen on" do |p|
options[:port] = p.to_i
end
Please sign in to comment.
Something went wrong with that request. Please try again.