From 6c698ac40aef406e0150587ff1db0ef9263033d9 Mon Sep 17 00:00:00 2001 From: Brady Svedin Date: Wed, 26 Jan 2022 17:29:47 -0700 Subject: [PATCH] Fixed bug, not the setup function is properly called in interactive mode. --- src/main/kotlin/cli.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/cli.kt b/src/main/kotlin/cli.kt index b3e9a50..2c32b1a 100644 --- a/src/main/kotlin/cli.kt +++ b/src/main/kotlin/cli.kt @@ -131,6 +131,8 @@ public fun cliReturning( } val finalFunc = func ?: if(useInteractive) { + setup.isAccessible = true + setup.callBy(envArgs) interactiveMode(available) return null } else {