Browse Source

Add old- aliases for old commands

Getty Ritter 6 years ago
parent
commit
695a1ad8bc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main.rs

+ 2 - 0
src/main.rs

@@ -49,6 +49,8 @@ fn replace(s: &str) -> Option<String> {
         "bench" => "new-bench".to_owned(),
         "freeze" => "new-freeze".to_owned(),
         "haddock" => "new-haddock".to_owned(),
+        s if s.starts_with("old-") =>
+            s.trim_left_matches("old-").to_owned(),
         _ => None?,
     })
 }