summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-11-15 10:51:47 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-11-15 10:57:31 -0800
commit4f43143ab17b3b7646b75838ebcc769854eb7906 (patch)
tree9672538d79e73006db9453b9ae53942e938f874d /cfg.mk
parent5450c7f8d33f7a9ee10a2700cad9ccc6cec3626e (diff)
downloadcoreutils-4f43143ab17b3b7646b75838ebcc769854eb7906.tar.gz
maint: fix cfg.mk comment
* cfg.mk (sc_texi_long_option_escaped): Fix comment.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/cfg.mk b/cfg.mk
index 992aabc86..4040d6846 100644
--- 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; } || :