From 4a3e612fac57c0b61826f269cb81871851ccfe95 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 13 Dec 2023 19:27:10 -0500 Subject: [PATCH] add a few aliases to mbtiles commands (#1063) * `mbtiles copy`: can also use `cp` * `mbtiles validate`: can also use `verify` and `check` --- mbtiles/src/bin/mbtiles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbtiles/src/bin/mbtiles.rs b/mbtiles/src/bin/mbtiles.rs index 6d7abc216..f04e857ec 100644 --- a/mbtiles/src/bin/mbtiles.rs +++ b/mbtiles/src/bin/mbtiles.rs @@ -49,7 +49,7 @@ enum Commands { value: Option, }, /// Copy tiles from one mbtiles file to another. - #[command(name = "copy")] + #[command(name = "copy", alias = "cp")] Copy(MbtilesCopier), /// Apply diff file generated from 'copy' command #[command(name = "apply-patch", alias = "apply-diff")] @@ -60,7 +60,7 @@ enum Commands { diff_file: PathBuf, }, /// Validate tile data if hash of tile data exists in file - #[command(name = "validate")] + #[command(name = "validate", alias = "check", alias = "verify")] Validate { /// MBTiles file to validate file: PathBuf,