Sfoglia il codice sorgente

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

sbatial 2 anni fa
parent
commit
256e370025
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/options/filter.rs

+ 6 - 0
src/options/filter.rs

@@ -165,17 +165,23 @@ impl DotFilter {
 
             // Only --all
             (1, 0) => Ok(Self::Dotfiles),
+            // Only --all
             (_, 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)),
+            // Only --all
             (_, 0) => Ok(Self::DotfilesAndDots),
 
             // Only --ls-all
             (0, 1) => Ok(Self::Dotfiles),
+            // Only --ls-all
             (0, _) if matches.is_strict() => Err(OptionsError::Conflict(&flags::LS_ALL, &flags::LS_ALL)),
+            // Only --ls-all
             (0, _) => Ok(Self::Dotfiles),
 
             // --all is actually the same as --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),
 
             (_, _) => Err(OptionsError::Conflict(&flags::ALL, &flags::LS_ALL)),