* fix issues with cmdline on headless systems
This commit is contained in:
parent
0827fda189
commit
d56fc9b368
|
@ -77,7 +77,7 @@ public class Main {
|
||||||
final ArgumentProcessor cli = new ArgumentProcessor();
|
final ArgumentProcessor cli = new ArgumentProcessor();
|
||||||
final ArgumentBean args = cli.parse(arguments);
|
final ArgumentBean args = cli.parse(arguments);
|
||||||
|
|
||||||
if (args.printHelp() || args.printVersion() || (!args.runCLI() && isHeadless())) {
|
if (args.printHelp() || args.printVersion() || (!(args.runCLI() || args.clearCache() || args.clearUserData()) && isHeadless())) {
|
||||||
System.out.format("%s / %s%n%n", getApplicationIdentifier(), getJavaRuntimeIdentifier());
|
System.out.format("%s / %s%n%n", getApplicationIdentifier(), getJavaRuntimeIdentifier());
|
||||||
|
|
||||||
if (args.printHelp() || (!args.printVersion() && isHeadless())) {
|
if (args.printHelp() || (!args.printVersion() && isHeadless())) {
|
||||||
|
|
Loading…
Reference in New Issue