diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-12-09 19:11:08 -0800 |
---|---|---|
committer | Timothee Cour <timothee.cour2@gmail.com> | 2018-12-09 19:11:08 -0800 |
commit | daaf50ae0383e4b8250cfca7cfe3cee27a0290d9 (patch) | |
tree | 28633c0b04617c408938c8df706b7f0113434044 /compiler/commands.nim | |
parent | 606b43ba1130b5672e91ddd156d81267634ed465 (diff) | |
download | Nim-daaf50ae0383e4b8250cfca7cfe3cee27a0290d9.tar.gz |
refs #9906; --errorMax:10 allows stopping after 10 errors
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 5 |
1 files changed, 5 insertions, 0 deletions
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) |