From 3c2f0ed89c3265bd11a86ea8ea9302468b5d8b31 Mon Sep 17 00:00:00 2001 From: Fries Date: Wed, 28 Sep 2022 20:39:51 -0700 Subject: [PATCH] args: add description as translatable string --- i18n/en/Amethyst.ftl | 1 + src/args.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/i18n/en/Amethyst.ftl b/i18n/en/Amethyst.ftl index 8a6cc42..64a176f 100644 --- a/i18n/en/Amethyst.ftl +++ b/i18n/en/Amethyst.ftl @@ -179,3 +179,4 @@ query-info = Get information about a specific package upgrade-repo = Upgrades only repo/native packages upgrade-aur = Upgrades only from the AUR gencomp-shell = The shell to generate completions for (bash, fish, elvish, pwsh, fig) +description = A fast and efficient AUR helper diff --git a/src/args.rs b/src/args.rs index 162f691..14f4cec 100644 --- a/src/args.rs +++ b/src/args.rs @@ -11,7 +11,7 @@ static VERSION: &str = concat!( ); #[derive(Debug, Clone, Parser)] -#[clap(bin_name = "ame", name = "Amethyst", version = VERSION, about = env ! ("CARGO_PKG_DESCRIPTION"), infer_subcommands = true)] +#[command(bin_name = "ame", name = "Amethyst", version = VERSION, about = fl!("description"), infer_subcommands = true)] pub struct Args { #[command(subcommand)] pub subcommand: Option,