From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 285a1658 for ; Sun, 26 Aug 2018 18:45:42 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fu4iy-00037X-Jo; Mon, 27 Aug 2018 01:45:42 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1fu4ix-0000Bc-AX; Mon, 27 Aug 2018 01:45:39 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1fu4iz-0000hl-8d; Mon, 27 Aug 2018 01:45:41 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id fe62ea3b; Mon, 27 Aug 2018 01:45:39 +0200 (CEST) Date: Mon, 27 Aug 2018 01:45:39 +0200 From: Ingo Schwarze To: Jan Stary Cc: discuss@mdocml.bsd.lv Subject: Re: -Wstyle Message-ID: <20180826234539.GA32542@athene.usta.de> References: <20180826225029.GA48147@www.stare.cz> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180826225029.GA48147@www.stare.cz> User-Agent: Mutt/1.8.0 (2017-02-23) 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