From b402b13fab027185e460a4020ee0a0b897bba441 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 10 Dec 2024 18:04:13 +0100 Subject: cut: with -F disabled in .config, don't show it in --help function old new delta packed_usage 34897 34849 -48 Signed-off-by: Denys Vlasenko --- 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: -- cgit v1.2.3-55-g6feb