mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-07 00:17:47 +00:00
Add override for prompting
This commit is contained in:
parent
e11dd50eb4
commit
a3f35a726c
1 changed files with 5 additions and 3 deletions
|
@ -194,12 +194,13 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_PROMPT)
|
Arg::new(OPT_PROMPT)
|
||||||
.short('i')
|
.short('i')
|
||||||
.help("prompt before every removal"),
|
.help("prompt before every removal")
|
||||||
|
.overrides_with_all(&[OPT_PROMPT_MORE, OPT_INTERACTIVE]),
|
||||||
)
|
)
|
||||||
.arg(Arg::new(OPT_PROMPT_MORE).short('I').help(
|
.arg(Arg::new(OPT_PROMPT_MORE).short('I').help(
|
||||||
"prompt once before removing more than three files, or when removing recursively. \
|
"prompt once before removing more than three files, or when removing recursively. \
|
||||||
Less intrusive than -i, while still giving some protection against most mistakes",
|
Less intrusive than -i, while still giving some protection against most mistakes",
|
||||||
))
|
).overrides_with_all(&[OPT_PROMPT, OPT_INTERACTIVE]))
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_INTERACTIVE)
|
Arg::new(OPT_INTERACTIVE)
|
||||||
.long(OPT_INTERACTIVE)
|
.long(OPT_INTERACTIVE)
|
||||||
|
@ -208,7 +209,8 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
prompts always",
|
prompts always",
|
||||||
)
|
)
|
||||||
.value_name("WHEN")
|
.value_name("WHEN")
|
||||||
.takes_value(true),
|
.takes_value(true)
|
||||||
|
.overrides_with_all(&[OPT_PROMPT, OPT_PROMPT_MORE]),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_ONE_FILE_SYSTEM)
|
Arg::new(OPT_ONE_FILE_SYSTEM)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue