This commit is contained in:
Paul Schaub 2024-12-12 20:37:26 +01:00
parent 0123b0e5fe
commit 811adf7af6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 16 additions and 90 deletions

View file

@ -6,16 +6,21 @@ import sop.cli.picocli.SOPExceptionExitCodeMapper;
import sop.cli.picocli.SOPExecutionExceptionHandler;
import sop.cli.picocli.SopCLI;
public class BcSopCLI extends SopCLI {
public class BcSopCLI {
public static void main(String[] args) {
SopCLI.EXECUTABLE_NAME = "bc-sop";
SopCLI.EXECUTABLE_NAME = "bcsop";
SopCLI.setSopInstance(new BouncyCastleSOP());
System.exit(run(args));
}
public static int run(String[] args)
{
// Set locale
new CommandLine(new SopCLI.InitLocale())
.setUnmatchedArgumentsAllowed(true)
.parseArgs(args);
CommandLine cmd = new CommandLine(SopCLI.class);
cmd.getSubcommands().get("generate-completion").getCommandSpec().usageMessage().hidden(true);
cmd.setCommandName("bcsop");