mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-14 12:49:44 +02:00
Throw IncompatibleOptions error for sign --as=clearsigned --no-armor
This commit is contained in:
parent
6d28a7b07d
commit
17b305924c
3 changed files with 11 additions and 0 deletions
|
@ -41,6 +41,11 @@ public class InlineSignCmd extends AbstractSopCmd {
|
|||
InlineSign inlineSign = throwIfUnsupportedSubcommand(
|
||||
SopCLI.getSop().inlineSign(), "inline-sign");
|
||||
|
||||
if (!armor && type == InlineSignAs.clearsigned) {
|
||||
String errorMsg = getMsg("sop.error.usage.incompatible_options.clearsigned_no_armor");
|
||||
throw new SOPGPException.IncompatibleOptions(errorMsg);
|
||||
}
|
||||
|
||||
if (type != null) {
|
||||
try {
|
||||
inlineSign.mode(type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue