From 9b108ab90b6346d93d62322b29325e084bc38995 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 3 Mar 2023 15:48:37 -0600 Subject: [PATCH] Remove -n from todo and add --longopt aliases for -DFO. --- toys/posix/cut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toys/posix/cut.c b/toys/posix/cut.c index d74dc4ea..b9710ea5 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -8,9 +8,9 @@ * "-" counts as start to end. Using spaces to separate a comma-separated list * is silly and inconsistent with dd, ps, cp, and mount. * - * TODO: -n, -s with -c + * TODO: -s with -c -USE_CUT(NEWTOY(cut, "b*|c*|f*|F*|C*|O(output-delimiter):d:sDn[!cbfF]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_CUT(NEWTOY(cut, "b*|c*|f*|F(regex-fields)*|C*|O(output-delimiter):d:sD(allow-duplicates)n[!cbfF]", TOYFLAG_USR|TOYFLAG_BIN)) config CUT bool "cut" @@ -25,7 +25,7 @@ config CUT from start). By default selection ranges are sorted and collated, use -D to prevent that. - -b Select bytes + -b Select bytes (with -n round start/end down to start of utf8 char) -c Select UTF-8 characters -C Select unicode columns -d Use DELIM (default is TAB for -f, run of whitespace for -F) -- 2.39.2