diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d16f1a3..e6eac32 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -17,8 +17,11 @@ pub struct Cli { | |||
| 17 | #[command(subcommand)] | 17 | #[command(subcommand)] |
| 18 | command: Commands, | 18 | command: Commands, |
| 19 | /// nsec or hex private key | 19 | /// nsec or hex private key |
| 20 | #[arg(short, long)] | 20 | #[arg(short, long, global = true)] |
| 21 | nsec: Option<String>, | 21 | nsec: Option<String>, |
| 22 | /// password to decrypt nsec | ||
| 23 | #[arg(short, long, global = true)] | ||
| 24 | password: Option<String>, | ||
| 22 | } | 25 | } |
| 23 | 26 | ||
| 24 | #[derive(Subcommand)] | 27 | #[derive(Subcommand)] |