Updating version of Picocli.

This commit is contained in:
Rob Greene 2023-10-29 13:55:46 -05:00
parent 848468ed21
commit ca87be4733
4 changed files with 6 additions and 4 deletions

View File

@ -20,7 +20,7 @@ bootJar {
}
dependencies {
implementation 'info.picocli:picocli:3.0.2'
implementation 'info.picocli:picocli:4.7.5'
implementation 'net.sf.applecommander:applesingle-api:1.2.2'
implementation project(':bastools-api')
}

View File

@ -103,7 +103,8 @@ public class Main implements Callable<Void> {
public static void main(String[] args) throws FileNotFoundException, IOException {
try {
CommandLine.call(new Main(), args);
int exitCode = new CommandLine(new Main()).execute(args);
System.exit(exitCode);
} catch (Throwable t) {
if (Main.debugFlag) {
t.printStackTrace(System.err);

View File

@ -20,7 +20,7 @@ bootJar {
}
dependencies {
implementation 'info.picocli:picocli:3.0.2'
implementation 'info.picocli:picocli:4.7.5'
implementation 'net.sf.applecommander:applesingle-api:1.2.2'
implementation 'net.sf.applecommander:AppleCommander:1.8.0'
implementation project(':bastools-api')

View File

@ -26,7 +26,8 @@ public class Main implements Runnable {
public static void main(String[] args) {
try {
CommandLine.run(new Main(), args);
int exitCode = new CommandLine(new Main()).execute(args);
System.exit(exitCode);
} catch (Throwable t) {
if (Main.debugFlag) {
t.printStackTrace(System.err);