[git commit] cut: with -F disabled in .config, don't show it in --help

Denys Vlasenko vda.linux at googlemail.com
Tue Dec 10 17:09:07 UTC 2024


commit: https://git.busybox.net/busybox/commit/?id=b402b13fab027185e460a4020ee0a0b897bba441
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
packed_usage                                       34897   34849     -48

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/cut.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/coreutils/cut.c b/coreutils/cut.c
index 54f74fc7e..f4d930db0 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -32,15 +32,23 @@
 //usage:       "Print selected fields from FILEs to stdout\n"
 //usage:     "\n	-b LIST	Output only bytes from LIST"
 //usage:     "\n	-c LIST	Output only characters from LIST"
-//usage:     "\n	-d SEP	Field delimiter for input (default -f TAB, -F run of whitespace)"
-//usage:     "\n	-s	Drop lines with no delimiter"
-//usage:     "\n	-O SEP	Field delimeter for output (default = -d for -f, one space for -F)"
-//TODO: --output-delimiter=SEP
+//usage:     IF_FEATURE_CUT_REGEX(
+//usage:     "\n	-d SEP	Input field delimiter (default -f TAB, -F run of whitespace)"
+//usage:     ) IF_NOT_FEATURE_CUT_REGEX(
+//usage:     "\n	-d SEP	Input field delimiter (default TAB)"
+//usage:     )
 //usage:     "\n	-f LIST	Print only these fields (-d is single char)"
 //usage:     IF_FEATURE_CUT_REGEX(
 //usage:     "\n	-F LIST	Print only these fields (-d is regex)"
 //usage:     )
-//usage:     "\n	-D	Don't sort/collate sections or match -fF lines without delimeter"
+//usage:     "\n	-s	Drop lines with no delimiter (else print them in full)"
+//usage:     "\n	-D	Don't sort/collate sections or match -f"IF_FEATURE_CUT_REGEX("F")" lines without delimeter"
+//usage:     IF_FEATURE_CUT_REGEX(
+//usage:     "\n	-O SEP	Output field delimeter (default = -d for -f, one space for -F)"
+//usage:     ) IF_NOT_FEATURE_CUT_REGEX(
+//usage:     "\n	-O SEP	Output field delimeter (default = -d)"
+//usage:     )
+//TODO: --output-delimiter=SEP
 //usage:     "\n	-n	Ignored"
 //(manpage:-n	with -b: don't split multibyte characters)
 //usage:


More information about the busybox-cvs mailing list