From 8e808fece95f2e506acf2c446d37b9913fd67d50 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Thu, 30 Jun 2022 15:38:57 +0200 Subject: [PATCH] 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 --- .changes/fix-signer-cmd.md | 6 ++++++ tooling/cli/src/signer/sign.rs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changes/fix-signer-cmd.md diff --git a/.changes/fix-signer-cmd.md b/.changes/fix-signer-cmd.md new file mode 100644 index 000000000..32fbd91ed --- /dev/null +++ b/.changes/fix-signer-cmd.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Fixes a crash on the `signer sign` command. diff --git a/tooling/cli/src/signer/sign.rs b/tooling/cli/src/signer/sign.rs index 0c54d328c..cc51c467b 100644 --- a/tooling/cli/src/signer/sign.rs +++ b/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, /// 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, /// Set private key password when signing #[clap(short, long)]