From 89ab148b77d13e7f75ae0db5f424730a9dcdb48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Sun, 17 Mar 2024 16:27:59 -0500 Subject: [PATCH] kairos-cli: fix use of deprecated function `#[arg(name)] was allowed by mistake, instead use `#[arg(id)]` or `#[arg(value_name)]` --- kairos-cli/src/common/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kairos-cli/src/common/args.rs b/kairos-cli/src/common/args.rs index 696dfa12..c2a4364a 100644 --- a/kairos-cli/src/common/args.rs +++ b/kairos-cli/src/common/args.rs @@ -4,12 +4,12 @@ use clap::Args; #[derive(Args, Debug)] pub struct AmountArg { - #[arg(name = "amount", long, short, value_name = "NUM_MOTES")] + #[arg(id = "amount", long, short, value_name = "NUM_MOTES")] pub field: u64, } #[derive(Args, Debug)] pub struct PrivateKeyPathArg { - #[arg(name = "private-key", long, short = 'k', value_name = "FILE_PATH")] + #[arg(id = "private-key", long, short = 'k', value_name = "FILE_PATH")] pub field: PathBuf, }