Hi Jan,
Jan Stary wrote on Mon, Aug 27, 2018 at 12:50:29AM +0200:
> This is mandoc as installed by the current OpenBSD snapshot (amd64).
> It seems that the order of -T -W resp -W -T does matter:
>
> $ mandoc -Tlint -Wstyle *.1
> $ mandoc -Wstyle -Tlint *.1
> mandoc: radio.1: STYLE: RCS id missing: (OpenBSD)
> mandoc: rip.1:1:5: STYLE: Mdocdate missing: Dd March (OpenBSD)
> mandoc: rip.1: STYLE: RCS id missing: (OpenBSD)
>
> Is that intentional?
Yes.
The order doesn't matter for -T and -W in general.
But -Tlint is special. It implies -Wall.
In other words, -Tlint has exactly the same effect as -Tlint -Wall.
So
-Tlint -Wstyle = -Tlint -Wall -Wstyle = -Tlint -Wstyle
because -Wstyle overrides -Wall and
-Wstyle -Tlint = -Wstyle -Tlint -Wall = -Tlint -Wall = -Tlint
Similarly, -Tlint -Thtml and -Thtml -Tlint have different effect.
Yours,
Ingo
--
To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv