nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

[minor] --errormax doesn't work with `nim doc`, can give hundreds of errors #13220

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

--errormax doesn't work with nim doc

Example

(nim doc --errormax:1 compiler/canonicalizer.nim 2>&1) | grep Error| wc -l

Current Output

478

Expected Output

1 or 0

Additional Information

juancarlospaco commented 4 years ago

I understand, but are all compiler flags suppose to work with nim doc?.

timotheecour commented 4 years ago

not all, but this one should; it's an annoyance when having 478 errors being shown... it made life harder when working on https://github.com/nim-lang/Nim/pull/13221 for example.

I'm fine with recategorizing as [minor] however