modelbuilder: get the management of opt_only_metamodel and opt_only_parse
[nit.git] / src / nit.nit
index 981a85c..e3d6f6d 100644 (file)
@@ -44,11 +44,9 @@ end
 var progname = arguments.first
 
 # Here we load an process all modules passed on the command line
-var mmodules = modelbuilder.parse_and_build([progname])
+var mmodules = modelbuilder.parse([progname])
 modelbuilder.run_phases
 
-if toolcontext.opt_only_metamodel.value then exit(0)
-
 # Here we launch the interpreter on the main module
 assert mmodules.length == 1
 var mainmodule = mmodules.first