nit: use OptionContext flag options_before_rest
authorJean Privat <jean@pryen.org>
Tue, 4 Nov 2014 02:40:50 +0000 (21:40 -0500)
committerJean Privat <jean@pryen.org>
Tue, 4 Nov 2014 16:14:12 +0000 (11:14 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/nit.nit

index 9a95194..3785ff5 100644 (file)
@@ -23,6 +23,7 @@ import parser_util
 
 # Create a tool context to handle options and paths
 var toolcontext = new ToolContext
+toolcontext.option_context.options_before_rest = true
 toolcontext.tooldescription = "Usage: nit [OPTION]... <file.nit>...\nInterprets and debugs Nit programs."
 # Add an option "-o" to enable compatibilit with the tests.sh script
 var opt = new OptionString("compatibility (does noting)", "-o")