From daaf50ae0383e4b8250cfca7cfe3cee27a0290d9 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 9 Dec 2018 19:11:08 -0800 Subject: refs #9906; --errorMax:10 allows stopping after 10 errors --- compiler/commands.nim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/commands.nim') diff --git a/compiler/commands.nim b/compiler/commands.nim index fa17e9851..576a7dc7f 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -617,6 +617,11 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "run", "r": expectNoArg(conf, switch, arg, pass, info) incl(conf.globalOptions, optRun) + of "errormax": + # Note: `nim check` (etc) can overwrite this; + # `0` is meaningless and has same effect as `1` + expectArg(conf, switch, arg, pass, info) + conf.errorMax = parseInt(arg) of "verbosity": expectArg(conf, switch, arg, pass, info) let verbosity = parseInt(arg) -- cgit 1.4.1-2-gfad0