Explorar o código

add a doc line for every arm to keep take them on the shuffle

sbatial %!s(int64=2) %!d(string=hai) anos
pai
achega
256e370025
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/options/filter.rs

+ 6 - 0
src/options/filter.rs

@@ -165,17 +165,23 @@ impl DotFilter {
 
 
             // Only --all
             // Only --all
             (1, 0) => Ok(Self::Dotfiles),
             (1, 0) => Ok(Self::Dotfiles),
+            // Only --all
             (_, 0) if matches.count(&flags::TREE) > 0 => Err(OptionsError::TreeAllAll),
             (_, 0) if matches.count(&flags::TREE) > 0 => Err(OptionsError::TreeAllAll),
+            // Only --all
             (c, 0) if c >= 3 && matches.is_strict() => Err(OptionsError::Conflict(&flags::ALL, &flags::ALL)),
             (c, 0) if c >= 3 && matches.is_strict() => Err(OptionsError::Conflict(&flags::ALL, &flags::ALL)),
+            // Only --all
             (_, 0) => Ok(Self::DotfilesAndDots),
             (_, 0) => Ok(Self::DotfilesAndDots),
 
 
             // Only --ls-all
             // Only --ls-all
             (0, 1) => Ok(Self::Dotfiles),
             (0, 1) => Ok(Self::Dotfiles),
+            // Only --ls-all
             (0, _) if matches.is_strict() => Err(OptionsError::Conflict(&flags::LS_ALL, &flags::LS_ALL)),
             (0, _) if matches.is_strict() => Err(OptionsError::Conflict(&flags::LS_ALL, &flags::LS_ALL)),
+            // Only --ls-all
             (0, _) => Ok(Self::Dotfiles),
             (0, _) => Ok(Self::Dotfiles),
 
 
             // --all is actually the same as --ls-all
             // --all is actually the same as --ls-all
             (1, 1) if matches.is_strict() => Err(OptionsError::Conflict(&flags::ALL, &flags::LS_ALL)),
             (1, 1) if matches.is_strict() => Err(OptionsError::Conflict(&flags::ALL, &flags::LS_ALL)),
+            // --all is actually the same as --ls-all
             (1, 1) => Ok(Self::Dotfiles),
             (1, 1) => Ok(Self::Dotfiles),
 
 
             (_, _) => Err(OptionsError::Conflict(&flags::ALL, &flags::LS_ALL)),
             (_, _) => Err(OptionsError::Conflict(&flags::ALL, &flags::LS_ALL)),