8000 unexpand: add -f short alias for --first-only · uutils/coreutils@ce0c2af · GitHub
[go: up one dir, main page]

Skip to content

Commit ce0c2af

Browse files
committed
unexpand: add -f short alias for --first-only
add the `--first-only` alias `-f` expected by busybox. document the change.
1 parent 6016a1c commit ce0c2af

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/src/extensions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,8 @@ Just like on macOS, `base32/base64/basenc` provides `-D` to decode data.
193193
## `shred`
194194

195195
The number of random passes is deterministic in both GNU and uutils. However, uutils `shred` computes the number of random passes in a simplified way, specifically `max(3, x / 10)`, which is very close but not identical to the number of random passes that GNU would do. This also satisfies an expectation that reasonable users might have, namely that the number of random passes increases monotonically with the number of passes overall; GNU `shred` violates this assumption.
196+
197+
## `unexpand`
198+
199+
GNU `unexpand` provides `--first-only` to convert only leading sequences of blanks. We support a
200+
second way: `-f`.

src/uu/unexpand/src/unexpand.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub fn uu_app() -> Command {
175175
)
176176
.arg(
177177
Arg::new(options::FIRST_ONLY)
178+
.short('f')
178179
.long(options::FIRST_ONLY)
179180
.help(get_message("unexpand-help-first-only"))
180181
.action(ArgAction::SetTrue),

0 commit comments

Comments
 (0)
0