]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix cfg.mk comment
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Nov 2022 18:51:47 +0000 (10:51 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Nov 2022 18:57:31 +0000 (10:57 -0800)
* cfg.mk (sc_texi_long_option_escaped): Fix comment.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 992aabc86bedf61f655f3d5aa1c6e1494473de27..4040d6846a294ee4631f6b65f17f5b89f80871e2 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -366,10 +366,7 @@ sc_option_desc_uppercase: $(ALL_MANS)
        @grep '^\\fB\\-' -A1 man/*.1 | LC_ALL=C grep '\.1.[A-Z][a-z]'   \
          && { echo 1>&2 '$@: found initial capitals in --help'; exit 1; } || :
 
-# Option descriptions should not start with a capital letter.
-# One could grep source directly as follows:
-# grep -E " {2,6}-.*[^.]  [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
-# but that would miss descriptions not on the same line as the -option.
+# '--' should not be treated as '–' (U+2013 EN DASH) in long option names.
 sc_texi_long_option_escaped: doc/coreutils.info
        @grep ' –[^ ]' '$<'                                           \
          && { echo 1>&2 '$@: found unquoted --long-option'; exit 1; } || :