Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually ask optionparser for arguments

  • Loading branch information...
commit fe69df654ca3baaa31f325b2494a8d63ee008590 1 parent 2e6c51a
@charliesome authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/ricer
View
6 bin/ricer
@@ -7,15 +7,15 @@ 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", "Address to listen on" do |a|
+ opts.on "-a", "--address IP", "Address to listen on" do |a|
options[:address] = a
end
- opts.on "-p", "--port", "Port to listen on" do |a|
+ opts.on "-p", "--port PORT", "Port to listen on" do |a|
options[:port] = p.to_i
end
- opts.on "--rackup", "Use specific file as rackup file" do |ru|
+ opts.on "--rackup FILE", "Use specified file as rackup file" do |ru|
options[:rackup] = ru
end
end.parse!
Please sign in to comment.
Something went wrong with that request. Please try again.