Sfoglia il codice sorgente

Add old- aliases for old commands

Getty Ritter 6 anni fa
parent
commit
695a1ad8bc
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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?,
     })
 }