discuss@mandoc.bsd.lv
 help / color / Atom feed
* -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, back to index

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

discuss@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-discuss

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.discuss


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git