* -Wstyle
@ 2018-08-26 22:50 Jan Stary
2018-08-26 23:45 ` -Wstyle Ingo Schwarze
0 siblings, 1 reply; 2+ messages in thread
From: Jan Stary @ 2018-08-26 22:50 UTC (permalink / raw)
To: discuss
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?
Jan
--
To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: -Wstyle
2018-08-26 22:50 -Wstyle Jan Stary
@ 2018-08-26 23:45 ` Ingo Schwarze
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Schwarze @ 2018-08-26 23:45 UTC (permalink / raw)
To: Jan Stary; +Cc: discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-26 23:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-26 22:50 -Wstyle Jan Stary
2018-08-26 23:45 ` -Wstyle Ingo Schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).