X-Git-Url: http://nitlanguage.org diff --git a/src/nitg.nit b/src/nitg.nit index ed84e7c..7b442a0 100644 --- a/src/nitg.nit +++ b/src/nitg.nit @@ -26,6 +26,11 @@ import separate_compiler # Create a tool context to handle options and paths var toolcontext = new ToolContext + +# Create a new option for --global +var opt_global = new OptionBool("Use global compilation", "--global") +toolcontext.option_context.add_option(opt_global) + # We do not add other options, so process them now! toolcontext.process_options @@ -47,7 +52,7 @@ 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]) if mmodules.is_empty then return modelbuilder.run_phases