feat(cli): remove uneeded args

This commit is contained in:
thesimplekid
2024-06-24 09:52:10 +01:00
parent 6d8c10440e
commit 732bed929e
4 changed files with 3 additions and 9 deletions

View File

@@ -4,8 +4,7 @@ use clap::Args;
#[derive(Args)]
pub struct BurnSubCommand {
/// Token Memo
#[arg(short, long)]
/// Mint Url
mint_url: Option<String>,
}

View File

@@ -11,15 +11,12 @@ use tokio::time::sleep;
#[derive(Args)]
pub struct MintSubCommand {
/// Mint url
mint_url: UncheckedUrl,
/// Amount
#[arg(short, long)]
amount: u64,
/// Currency unit e.g. sat
#[arg(short, long)]
unit: String,
/// Mint url
#[arg(short, long)]
mint_url: UncheckedUrl,
}
pub async fn mint(wallet: Wallet, sub_command_args: &MintSubCommand) -> Result<()> {

View File

@@ -6,7 +6,6 @@ use clap::Args;
#[derive(Args)]
pub struct MintInfoSubcommand {
/// Cashu Token
#[arg(short, long)]
mint_url: UncheckedUrl,
}

View File

@@ -6,7 +6,6 @@ use clap::Args;
#[derive(Args)]
pub struct RestoreSubCommand {
/// Mint Url
#[arg(short, long)]
mint_url: UncheckedUrl,
}