src: use `toolcontext.quit` instead of rogue `exit`
[nit.git] / src / nit.nit
index 196961d..9410b4d 100644 (file)
@@ -70,7 +70,7 @@ end
 
 modelbuilder.run_phases
 
-if toolcontext.opt_only_metamodel.value then exit(0)
+if toolcontext.opt_only_metamodel.value then toolcontext.quit
 
 var mainmodule = toolcontext.make_main_module(mmodules)