mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +02:00
Implement sop version --sop-spec
This commit is contained in:
parent
dfce1ad6bb
commit
f49c16e4c5
4 changed files with 45 additions and 0 deletions
|
@ -22,6 +22,9 @@ public class VersionCmd extends AbstractSopCmd {
|
|||
|
||||
@CommandLine.Option(names = "--backend")
|
||||
boolean backend;
|
||||
|
||||
@CommandLine.Option(names = "--sop-spec")
|
||||
boolean sopSpec;
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,5 +48,10 @@ public class VersionCmd extends AbstractSopCmd {
|
|||
Print.outln(version.getBackendVersion());
|
||||
return;
|
||||
}
|
||||
|
||||
if (exclusive.sopSpec) {
|
||||
Print.outln(version.getSopSpecVersion());
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue