var files = opts.rest
if files.is_empty or opt_help.value then
- print "Usage: {sys.program_name} [options] file.pep [other_file.pep [...]]"
+ print "Usage: pep8analysis [options] file.pep [other_file.pep [...]]"
print "Options:"
opts.usage
return
print "Target file \"{filename}\" does not exist."
exit 1
end
- var ast = build_ast( filename )
+ var ast = build_ast_from_file( filename )
assert ast != null
if failed then continue
end
end
-redef class Object
- redef fun manager do return once new AnalysisManager
-end
-
manager.run