From e11dd50eb4f3572a52b5c92dae76b977349e8998 Mon Sep 17 00:00:00 2001 From: Pat Laster Date: Wed, 12 Oct 2022 16:54:38 -0500 Subject: [PATCH] Added comments --- src/uu/rm/src/rm.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uu/rm/src/rm.rs b/src/uu/rm/src/rm.rs index 2143bb8e3..a8932b7f5 100644 --- a/src/uu/rm/src/rm.rs +++ b/src/uu/rm/src/rm.rs @@ -99,16 +99,19 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { let mut result = true; + // if we have rm -i -f if let Some(prompt_index) = prompt_index_option { if result { result = prompt_index <= force_index; } } + // if we have rm -I -f if let Some(prompt_more_index_index) = prompt_more_index_option { if result { result = prompt_more_index_index <= force_index; } } + // if we have rm --interactive -f if let Some(interactive_index) = interactive_index_option { if result { result = interactive_index <= force_index;