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:
parent
3e9979240b
commit
5a9e1629b2
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue