src/examples/openflow_message/hello.rb in trema-0.3.10 vs src/examples/openflow_message/hello.rb in trema-0.3.11

- old
+ new

@@ -18,14 +18,14 @@ # class HelloController < Controller def start - if ARGV.size < 2 - STDERR.puts "Usage: #{ File.basename ARGV[ 0 ] } COUNT" + if ARGV.size != 1 + STDERR.puts "Usage: #{ File.basename __FILE__ } COUNT" shutdown! end - @count = ARGV[ 1 ].to_i + @count = ARGV[ 0 ].to_i end def switch_ready datapath_id @count.times do