From unknown Mon Jun 16 23:48:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54366 <54366@debbugs.gnu.org> To: bug#54366 <54366@debbugs.gnu.org> Subject: Status: option -L is not documented in the "diff --help" output Reply-To: bug#54366 <54366@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:48:12 +0000 retitle 54366 option -L is not documented in the "diff --help" output reassign 54366 diffutils submitter 54366 Vincent Lefevre severity 54366 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 12 20:49:22 2022 Received: (at submit) by debbugs.gnu.org; 13 Mar 2022 01:49:22 +0000 Received: from localhost ([127.0.0.1]:41267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTDMI-0008Es-Ic for submit@debbugs.gnu.org; Sat, 12 Mar 2022 20:49:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:41364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTDMH-0008El-GQ for submit@debbugs.gnu.org; Sat, 12 Mar 2022 20:49:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTDMH-0003e9-4o for bug-diffutils@gnu.org; Sat, 12 Mar 2022 20:49:21 -0500 Received: from joooj.vinc17.net ([155.133.131.76]:37982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTDMF-0000M5-Nd for bug-diffutils@gnu.org; Sat, 12 Mar 2022 20:49:20 -0500 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 32F2229D; Sun, 13 Mar 2022 02:49:18 +0100 (CET) Received: by zira.vinc17.org (Postfix, from userid 1000) id E93FE280033C; Sun, 13 Mar 2022 02:49:17 +0100 (CET) Date: Sun, 13 Mar 2022 02:49:17 +0100 From: Vincent Lefevre To: bug-diffutils@gnu.org Subject: option -L is not documented in the "diff --help" output Message-ID: <20220313014917.GG31771@zira.vinc17.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="03/w0FnEpi05yyhA" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.1+12 (1ba319cf) vl-138565 (2022-03-05) Received-SPF: none client-ip=155.133.131.76; envelope-from=vincent@vinc17.net; helo=joooj.vinc17.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --03/w0FnEpi05yyhA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Option -L is not documented in the "diff --help" output (and as a consequence, in the generated diff.1 man page either). The doc/diffutils.info file contains '-L LABEL' '--label=LABEL' Use LABEL instead of the file name in the context format (*note Context Format::) and unified format (*note Unified Format::) headers. *Note RCS::. so " --label LABEL" should just be changed to "-L, --label LABEL" in src/diff.c. Patch attached. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) --03/w0FnEpi05yyhA Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="diff.patch" diff --git a/src/diff.c b/src/diff.c index 1df3f41..b0bb29a 100644 --- a/src/diff.c +++ b/src/diff.c @@ -953,7 +953,7 @@ static char const * const option_help_msgid[] = { "", N_("-p, --show-c-function show which C function each change is in"), N_("-F, --show-function-line=RE show the most recent line matching RE"), - N_(" --label LABEL use LABEL instead of file name and timestamp\n" + N_("-L, --label LABEL use LABEL instead of file name and timestamp\n" " (can be repeated)"), "", N_("-t, --expand-tabs expand tabs to spaces in output"), --03/w0FnEpi05yyhA--