mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
Fixed rm --force argument not forcing prompt to not show up
This commit is contained in:
parent
6856ce0bf4
commit
50d2948aa1
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
let options = Options {
|
let options = Options {
|
||||||
force,
|
force,
|
||||||
interactive: {
|
interactive: {
|
||||||
if matches.contains_id(OPT_PROMPT) {
|
if force {
|
||||||
|
InteractiveMode::Never
|
||||||
|
} else if matches.contains_id(OPT_PROMPT) {
|
||||||
InteractiveMode::Always
|
InteractiveMode::Always
|
||||||
} else if matches.contains_id(OPT_PROMPT_MORE) {
|
} else if matches.contains_id(OPT_PROMPT_MORE) {
|
||||||
InteractiveMode::Once
|
InteractiveMode::Once
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue