Add x alias to extract command

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 3 years ago
parent 2c77342398
commit 7d80d886ac
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -845,7 +845,7 @@ checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
[[package]] [[package]]
name = "universal-archiver" name = "universal-archiver"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap", "clap",

@ -3,7 +3,7 @@ name = "universal-archiver"
description = "A tool to unpack archives without having to specify the archive type." description = "A tool to unpack archives without having to specify the archive type."
repository = "https://github.com/Trivernis/universal-archiver.git" repository = "https://github.com/Trivernis/universal-archiver.git"
authors = ["Trivernis <trivernis@pm.me>"] authors = ["Trivernis <trivernis@pm.me>"]
version = "0.2.0" version = "0.2.1"
edition = "2021" edition = "2021"
keywords = ["compression", "extract-archive", "archiver", "cli"] keywords = ["compression", "extract-archive", "archiver", "cli"]
license = "MIT" license = "MIT"

@ -16,6 +16,7 @@ struct Args {
#[derive(Debug, Clone, Subcommand)] #[derive(Debug, Clone, Subcommand)]
pub enum Operation { pub enum Operation {
/// Extracts a given file /// Extracts a given file
#[clap(aliases=&["x"])]
Extract { Extract {
/// The file to extract /// The file to extract
file: PathBuf, file: PathBuf,

Loading…
Cancel
Save