bin/rawler in rawler-0.0.9 vs bin/rawler in rawler-0.1.0
- old
+ new
@@ -12,23 +12,22 @@
rawler http://example.com [options]
where [options] are:
EOS
- # opt :domain, "domain that you want to test", :type => :string
opt :username, "HTT Basic Username", :type => :string
opt :password, "HTT Basic Password", :type => :string
+ opt :wait, "Number of seconds to wait betweet requests", :default => 3
end
-# Use dup to unfrozen string
-domain = ARGV.shift.dup
+domain = ARGV.shift
if domain.nil?
Trollop::die "Domain name is mandatory. Type --help for help"
else
Trollop::options do
opt :domain, "Domain address", :type => :string
end
end
-Rawler::Base.new(domain, $stdout, opts[:username], opts[:password]).validate
+Rawler::Base.new(domain, $stdout, opts).validate