benches: introduces bench_markdown script
[nit.git] / contrib / pep8analysis / src / pep8analysis.nit
index ecc6774..a3231bb 100644 (file)
@@ -29,7 +29,7 @@ redef class AnalysisManager
                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
@@ -48,7 +48,7 @@ redef class AnalysisManager
                                        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
@@ -105,8 +105,4 @@ redef class AnalysisManager
        end
 end
 
-redef class Object
-       redef fun manager do return once new AnalysisManager
-end
-
 manager.run