Skip to content

Commit 32a45f0

Browse files
committed
Deactivated GraalVM specific lines. Bugfix for help text
1 parent d9af2e3 commit 32a45f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/scala/de/upb/cs/swt/delphi/cli/DelphiCLI.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ object DelphiCLI {
3333

3434
val trustStorePath = getEnvOrElse("JAVA_TRUSTSTORE", "/usr/lib/jvm/default-java/lib/security/cacerts")
3535

36-
System.setProperty("java.library.path", javaLibPath)
37-
System.setProperty("javax.net.ssl.trustStore", trustStorePath)
36+
// This only is allowed to be set for GraalVM compiles...
37+
//System.setProperty("java.library.path", javaLibPath)
38+
//System.setProperty("javax.net.ssl.trustStore", trustStorePath)
3839

3940
cliParser.parse(args, Config()) match {
4041
case Some(c) =>
@@ -43,12 +44,13 @@ object DelphiCLI {
4344
implicit val config: Config = c
4445
implicit val backend: SttpBackend[Id, Nothing] = HttpURLConnectionBackend()
4546

46-
if (!config.silent) cliParser.showHeader()
47+
if (!config.silent && config.mode != "") cliParser.showHeader()
4748

4849
config.mode match {
4950
case "test" => TestCommand.execute
5051
case "retrieve" => RetrieveCommand.execute
5152
case "search" => SearchCommand.execute
53+
case "" => cliParser.showUsage()
5254
case x => config.consoleOutput.outputError(s"Unknown command: $x")
5355
}
5456

0 commit comments

Comments
 (0)