1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-07 16:37:48 +00:00

Added comments

This commit is contained in:
Pat Laster 2022-10-12 16:54:38 -05:00
parent 355136936f
commit e11dd50eb4

View file

@ -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;