fix(cli.rs): conflicts_with arg doesn't exist closes (#4538)

* fix: conflicts_with path doesn't exist

* add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Jonas Kruckenberg 2022-06-30 15:38:57 +02:00 committed by GitHub
parent 2e74d20e83
commit 8e808fece9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes a crash on the `signer sign` command.

View File

@ -15,10 +15,10 @@ use clap::Parser;
#[clap(about = "Sign a file")]
pub struct Options {
/// Load the private key from a file
#[clap(short = 'k', long, conflicts_with("private_key_path"))]
#[clap(short = 'k', long, conflicts_with("private-key-path"))]
private_key: Option<String>,
/// Load the private key from a string
#[clap(short = 'f', long, conflicts_with("private_key"))]
#[clap(short = 'f', long, conflicts_with("private-key"))]
private_key_path: Option<PathBuf>,
/// Set private key password when signing
#[clap(short, long)]