Allow customization of executable name of sop-java-picocli

This commit is contained in:
Paul Schaub 2021-07-23 21:02:36 +02:00
parent 3e9979240b
commit 5a9e1629b2
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 4 additions and 1 deletions

View File

@ -43,9 +43,11 @@ import sop.cli.picocli.commands.VersionCmd;
}
)
public class SopCLI {
// Singleton
static SOP SOP_INSTANCE;
public static String EXECUTABLE_NAME = "sop";
public static void main(String[] args) {
int exitCode = execute(args);
if (exitCode != 0) {
@ -55,6 +57,7 @@ public class SopCLI {
public static int execute(String[] args) {
return new CommandLine(SopCLI.class)
.setCommandName(EXECUTABLE_NAME)
.setCaseInsensitiveEnumValuesAllowed(true)
.execute(args);
}