From 1d5a787b027ac7c46e96632e939e1f6893e449f2 Mon Sep 17 00:00:00 2001 From: comp500 Date: Tue, 16 Jun 2020 04:03:52 +0100 Subject: [PATCH] Add JvmStatic to fix --help command (bootstrapper calls these) --- src/main/kotlin/link/infra/packwiz/installer/Main.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/link/infra/packwiz/installer/Main.kt b/src/main/kotlin/link/infra/packwiz/installer/Main.kt index 6419533..7bd42fe 100644 --- a/src/main/kotlin/link/infra/packwiz/installer/Main.kt +++ b/src/main/kotlin/link/infra/packwiz/installer/Main.kt @@ -86,6 +86,7 @@ class Main(args: Array) { companion object { // Called by packwiz-installer-bootstrap to set up the help command + @JvmStatic fun addNonBootstrapOptions(options: Options) { options.addOption("s", "side", true, "Side to install mods from (client/server, defaults to client)") options.addOption(null, "title", true, "Title of the installer window") @@ -94,6 +95,7 @@ class Main(args: Array) { } // TODO: link these somehow so they're only defined once? + @JvmStatic private fun addBootstrapOptions(options: Options) { options.addOption(null, "bootstrap-update-url", true, "Github API URL for checking for updates") options.addOption(null, "bootstrap-update-token", true, "Github API Access Token, for private repositories")