libeufin

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

commit 56c184c2481fddd98144424b7bd43f2ecd41013e
parent c6320ffb9382e9da5d7d2f0eeffe5c55ae0ec61c
Author: Antoine A <>
Date:   Mon, 11 Nov 2024 19:37:14 +0100

bank: improve cli helps

Diffstat:
Mbank/src/main/kotlin/tech/libeufin/bank/cli/CreateAccount.kt | 2+-
Mbank/src/main/kotlin/tech/libeufin/bank/cli/CreateToken.kt | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/cli/CreateAccount.kt b/bank/src/main/kotlin/tech/libeufin/bank/cli/CreateAccount.kt @@ -36,7 +36,7 @@ import tech.libeufin.common.* class CreateAccountOption: OptionGroup() { val username: String by option( - "--username", "--user", "-u", + "-u", "--user", "--username", metavar = "<username>", help = "Account unique username" ).required() diff --git a/bank/src/main/kotlin/tech/libeufin/bank/cli/CreateToken.kt b/bank/src/main/kotlin/tech/libeufin/bank/cli/CreateToken.kt @@ -36,7 +36,7 @@ class CreateToken : CliktCommand("create-token") { override fun help(context: Context) = "Create authentication token for a user" private val common by CommonOption() private val username by option( - "--username", "--user", "-u", + "-u", "--user", "--username", metavar = "<username>", help = "Account username" ).required() @@ -55,7 +55,7 @@ class CreateToken : CliktCommand("create-token") { }.default(TOKEN_DEFAULT_DURATION) private val description by option("--description", help = "Optional token description") private val refreshable by option("--refreshable", help = "Make the token refreshable into a new token").flag() - private val currentToken by option("--current-token", help = "Current token to reuse if still active").convert { + private val currentToken by option("--current-token", help = "Current token to reuse if still valid").convert { Base32Crockford.decode(it.removePrefix(TOKEN_PREFIX)) }