Эх сурвалжийг харах

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>
Jonas Kruckenberg 3 жил өмнө
parent
commit
8e808fece9

+ 6 - 0
.changes/fix-signer-cmd.md

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

+ 2 - 2
tooling/cli/src/signer/sign.rs

@@ -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)]