1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

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

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);
}