From a91cee861aba7f9e5ba0b57a43e944dc1f15d6e1 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 23 Mar 2024 23:04:00 +0200 Subject: [PATCH] pass CLI args to MainPage --- src/main/kotlin/com/nuculabs/dev/imagetagger/ui/MainPage.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/MainPage.kt b/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/MainPage.kt index f7b76ec..1038c0f 100644 --- a/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/MainPage.kt +++ b/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/MainPage.kt @@ -20,6 +20,6 @@ class MainPage : Application() { } } -fun main() { - Application.launch(MainPage::class.java) +fun main(args: Array) { + Application.launch(MainPage::class.java, *args) } \ No newline at end of file