mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-29 18:42:08 +01:00
Add comment about why --as=clearsigned and --no-armor are incompatible
This commit is contained in:
parent
7743f15e72
commit
6ec62560ba
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ public class InlineSignCmd extends AbstractSopCmd {
|
||||||
InlineSign inlineSign = throwIfUnsupportedSubcommand(
|
InlineSign inlineSign = throwIfUnsupportedSubcommand(
|
||||||
SopCLI.getSop().inlineSign(), "inline-sign");
|
SopCLI.getSop().inlineSign(), "inline-sign");
|
||||||
|
|
||||||
|
// Clearsigned messages are inherently armored, so --no-armor makes no sense.
|
||||||
if (!armor && type == InlineSignAs.clearsigned) {
|
if (!armor && type == InlineSignAs.clearsigned) {
|
||||||
String errorMsg = getMsg("sop.error.usage.incompatible_options.clearsigned_no_armor");
|
String errorMsg = getMsg("sop.error.usage.incompatible_options.clearsigned_no_armor");
|
||||||
throw new SOPGPException.IncompatibleOptions(errorMsg);
|
throw new SOPGPException.IncompatibleOptions(errorMsg);
|
||||||
|
|
Loading…
Reference in a new issue