diff --git a/src/commands/signzone.rs b/src/commands/signzone.rs index edf345e..bd0e837 100644 --- a/src/commands/signzone.rs +++ b/src/commands/signzone.rs @@ -389,6 +389,10 @@ impl SignZone { SigningMode::HashAndSign }; + if self.key_paths.is_empty() && !self.hash_only { + return Err("Missing key argument".into()); + }; + let out_file = if let Some(out_file) = &self.out_file { out_file.clone() } else {