ソースを参照

Add old- aliases for old commands

Getty Ritter 7 年 前
コミット
695a1ad8bc
1 ファイル変更2 行追加0 行削除
  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?,
     })
 }