CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/anemone/cli.rb
Views: 1904
1
module Anemone
2
module CLI
3
COMMANDS = %w[count cron pagedepth serialize url-list]
4
5
def self.run
6
command = ARGV.shift
7
8
if COMMANDS.include? command
9
load "anemone/cli/#{command.tr('-', '_')}.rb"
10
else
11
puts <<-INFO
12
Anemone is a web spider framework that can collect
13
useful information about pages it visits.
14
15
Usage:
16
anemone <command> [arguments]
17
18
Commands:
19
#{COMMANDS.join(', ')}
20
INFO
21
end
22
end
23
end
24
end
25
26