rm: allow "-f" to be specified multiple times (#1667)

This matches the behavior of GNU rm.

Fixes #1663.

Co-authored-by: Kevin Burke <kevin@burke.dev>
This commit is contained in:
Kevin Burke 2020-12-25 03:41:48 -08:00 committed by GitHub
parent 36d903e611
commit 10cd480a01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
Arg::with_name(OPT_FORCE)
.short("f")
.long(OPT_FORCE)
.multiple(true)
.help("ignore nonexistent files and arguments, never prompt")
)
.arg(