Mark `--identity` flag as required where necessary
This commit is contained in:
parent
db9ffae56c
commit
c8a59bf95c
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue