diff --git a/src/enclosure/rule.rs b/src/enclosure/rule.rs index 7e736af..6ba0ff8 100644 --- a/src/enclosure/rule.rs +++ b/src/enclosure/rule.rs @@ -206,7 +206,7 @@ impl FromStr for RuleMode { fn from_str(s: &str) -> Result { match s { "file" => Ok(RuleMode::File), - "directory" => Ok(RuleMode::Directory), + "directory" | "dir" => Ok(RuleMode::Directory), _ => Err(format!("invalid rule mode: {}", s)), } }