mirror of
https://codeberg.org/PGPainless/bc-sop.git
synced 2025-12-07 15:01:09 +01:00
Clean up
This commit is contained in:
parent
0123b0e5fe
commit
811adf7af6
2 changed files with 16 additions and 90 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue