From e05b875be8ce9d8005806d59c35dc57a0e8c7b65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sat, 15 Nov 2025 13:42:51 +0000 Subject: [PATCH] maint: tag supported options not documented in --help --- src/cksum.c | 6 +++--- src/csplit.c | 2 +- src/date.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cksum.c b/src/cksum.c index 35c89afee1..ac3e3f10ef 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -457,11 +457,11 @@ static struct option const long_options[] = { "raw", no_argument, nullptr, RAW_OPTION}, { "untagged", no_argument, nullptr, UNTAG_OPTION }, # endif - { "binary", no_argument, nullptr, 'b' }, - { "text", no_argument, nullptr, 't' }, + { "binary", no_argument, nullptr, 'b' }, /* Deprecated. */ + { "text", no_argument, nullptr, 't' }, /* Deprecated. */ #else - {"sysv", no_argument, nullptr, 's'}, + {"sysv", no_argument, nullptr, 's'}, /* Not in cksum. */ #endif { GETOPT_HELP_OPTION_DECL }, diff --git a/src/csplit.c b/src/csplit.c index f3fccfcd5d..90468e864f 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -187,7 +187,7 @@ enum static struct option const longopts[] = { {"digits", required_argument, nullptr, 'n'}, - {"quiet", no_argument, nullptr, 'q'}, + {"quiet", no_argument, nullptr, 'q'}, /* Deprecated. */ {"silent", no_argument, nullptr, 's'}, {"keep-files", no_argument, nullptr, 'k'}, {"elide-empty-files", no_argument, nullptr, 'z'}, diff --git a/src/date.c b/src/date.c index 91651e794f..2b944e79fd 100644 --- a/src/date.c +++ b/src/date.c @@ -92,11 +92,11 @@ static struct option const long_options[] = {"reference", required_argument, nullptr, 'r'}, {"resolution", no_argument, nullptr, RESOLUTION_OPTION}, {"rfc-email", no_argument, nullptr, 'R'}, - {"rfc-822", no_argument, nullptr, 'R'}, - {"rfc-2822", no_argument, nullptr, 'R'}, + {"rfc-822", no_argument, nullptr, 'R'}, /* Deprecated. */ + {"rfc-2822", no_argument, nullptr, 'R'}, /* Deprecated. */ {"rfc-3339", required_argument, nullptr, RFC_3339_OPTION}, {"set", required_argument, nullptr, 's'}, - {"uct", no_argument, nullptr, 'u'}, + {"uct", no_argument, nullptr, 'u'}, /* Deprecated. */ {"utc", no_argument, nullptr, 'u'}, {"universal", no_argument, nullptr, 'u'}, {GETOPT_HELP_OPTION_DECL}, -- 2.47.3