From 43d23d1d43efdeefb2cd8087c72eab47cfd81275 Mon Sep 17 00:00:00 2001 From: hrj Date: Thu, 3 Sep 2020 23:36:27 +0530 Subject: [PATCH] avoid deferred init. Not sure if it is necessary for native-image, but feels better --- src/main/scala/co/uproot/abandon/Main.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/scala/co/uproot/abandon/Main.scala b/src/main/scala/co/uproot/abandon/Main.scala index 880d755f..83214d2f 100644 --- a/src/main/scala/co/uproot/abandon/Main.scala +++ b/src/main/scala/co/uproot/abandon/Main.scala @@ -2,13 +2,16 @@ package co.uproot.abandon import java.net.{URL, URLClassLoader} -object Main extends App { +// object Main extends App { +object Main { // if(args.headOption.getOrElse("") equals "-g") { // ensureJFXIsAvailable() // AbandonUI.main(args.tail) // } else { + def main(args: Array[String]) = { CLIApp.main(args) + } // } /*