Skip to content

Commit

Permalink
kairos-cli: fix use of deprecated function
Browse files Browse the repository at this point in the history
`#[arg(name)] was allowed by mistake, instead use `#[arg(id)]` or `#[arg(value_name)]`
  • Loading branch information
marijanp committed Mar 17, 2024
1 parent 948f15a commit 89ab148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kairos-cli/src/common/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 89ab148

Please sign in to comment.