mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 03:55:28 +00:00
utils: fix usage of the -n, --no flag
This commit is contained in:
parent
dedf7c0eca
commit
b614533fd5
@ -105,7 +105,7 @@ pub fn permission_for_overwriting(
|
|||||||
flags: &oof::Flags,
|
flags: &oof::Flags,
|
||||||
confirm: &Confirmation,
|
confirm: &Confirmation,
|
||||||
) -> crate::Result<bool> {
|
) -> crate::Result<bool> {
|
||||||
match (flags.is_present("yes"), flags.is_present("false")) {
|
match (flags.is_present("yes"), flags.is_present("no")) {
|
||||||
(true, true) => {
|
(true, true) => {
|
||||||
unreachable!("This should've been cutted out in the ~/src/cli.rs filter flags function.")
|
unreachable!("This should've been cutted out in the ~/src/cli.rs filter flags function.")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user