mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
specify that cut -w is freebsd extension
This commit is contained in:
parent
866a6d25c8
commit
17c48e13f4
2 changed files with 6 additions and 1 deletions
|
@ -29,3 +29,7 @@ We provide a simple implementation of `more`, which is not part of GNU
|
|||
coreutils. We do not aim for full compatibility with the `more` utility from
|
||||
`util-linux`. Features from more modern pagers (like `less` and `bat`) are
|
||||
therefore welcomed.
|
||||
|
||||
## `cut`
|
||||
|
||||
`cut` can separate fields by whitespace (Space and Tab) with `-w` flag. This feature is adopted from [FreeBSD](https://www.freebsd.org/cgi/man.cgi?cut).
|
|
@ -90,6 +90,7 @@ static LONG_HELP: &str = "
|
|||
If the -w option is provided, fields will be separated by any number
|
||||
of whitespace characters (Space and Tab). The output delimiter will
|
||||
be a Tab unless explicitly specified. Only one of -d or -w option can be specified.
|
||||
This is an extension adopted from FreeBSD.
|
||||
|
||||
Optionally Filter based on delimiter
|
||||
If the --only-delimited (-s) flag is provided, only lines which
|
||||
|
@ -675,7 +676,7 @@ pub fn uu_app() -> Command {
|
|||
.arg(
|
||||
Arg::new(options::WHITESPACE_DELIMITED)
|
||||
.short('w')
|
||||
.help("Use any number of whitespace (Space, Tab) to separate fields in the input source.")
|
||||
.help("Use any number of whitespace (Space, Tab) to separate fields in the input source (FreeBSD extension).")
|
||||
.value_name("WHITESPACE")
|
||||
.action(ArgAction::SetTrue),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue