54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# File 'lib/check_everything.rb', line 54
def self.run
@argv = ARGV.map(&:downcase)
ARGV.clear
customize_installation if !File.exists?(LINKFILE)
unmatched_args = unknown_arguments
if !unmatched_args.empty?
puts_unmatched_error_message(unmatched_args)
elsif argv_requests?(:help)
help
elsif argv_requests?(:links)
system("open #{LINKFILE}")
elsif argv_requests?(:ruby)
assemble_ruby_docs_file
elsif @invalid_char_in_links
puts "Your link file includes a category with a " +
"\"#{@invalid_char_in_links}\" character in it; please fix by " +
"entering 'check_everything -l' into your command line."
elsif argv_requests?(:categories)
view_categories
else
open_links
end
end
|