Mark `--identity` flag as required where necessary

This commit is contained in:
Jack Grigg 2024-12-11 18:12:09 +00:00
parent db9ffae56c
commit c8a59bf95c
4 changed files with 13 additions and 3 deletions

View File

@ -26,6 +26,7 @@ pub(crate) struct Command {
name: String,
#[options(
required,
help = "age identity file to encrypt the mnemonic phrase to (generated if it doesn't exist)"
)]
identity: String,

View File

@ -18,7 +18,10 @@ use crate::config::WalletConfig;
// Options accepted for the `pczt sign` command
#[derive(Debug, Options)]
pub(crate) struct Command {
#[options(help = "age identity file to decrypt the mnemonic phrase with")]
#[options(
required,
help = "age identity file to decrypt the mnemonic phrase with"
)]
identity: String,
}

View File

@ -16,7 +16,10 @@ use crate::{
// Options accepted for the `reset` command
#[derive(Debug, Options)]
pub(crate) struct Command {
#[options(help = "age identity file to decrypt the mnemonic phrase with")]
#[options(
required,
help = "age identity file to decrypt the mnemonic phrase with"
)]
identity: String,
#[options(

View File

@ -35,7 +35,10 @@ use crate::{
// Options accepted for the `send` command
#[derive(Debug, Options)]
pub(crate) struct Command {
#[options(help = "age identity file to decrypt the mnemonic phrase with")]
#[options(
required,
help = "age identity file to decrypt the mnemonic phrase with"
)]
identity: String,
#[options(