libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 93f45f454ca081639c29d3340ad3da572c0db90e
parent 6c03c39d3d0330040f54b787ef491e409281a34e
Author: ms <ms@taler.net>
Date:   Tue, 10 May 2022 12:09:23 +0200

--override option affects now only the registration policy.

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -138,7 +138,8 @@ class Config : CliktCommand( ) private val overrideOption by option( "--override", - help = "Override an existing demobank. WARNING: every value NOT given here will be reset to the default!" + help = "Override an existing --allow/disallow -registrations policy." + + " It has NO effect on other options" ).flag("--no-override", default = false) private val currencyOption by option("--currency").default("EUR") private val bankDebtLimitOption by option("--bank-debt-limit").int().default(1000000) @@ -162,11 +163,7 @@ class Config : CliktCommand( }.firstOrNull() if (maybeDemobank != null) { if (overrideOption) { - maybeDemobank.currency = currencyOption - maybeDemobank.bankDebtLimit = bankDebtLimitOption - maybeDemobank.usersDebtLimit = usersDebtLimitOption maybeDemobank.allowRegistrations = allowRegistrationsOption - maybeDemobank.withSignupBonus = withSignupBonusOption return@transaction } println("Error, demobank ${nameArgument} exists already, not overriding it.")