commit 201f43d0302cc9dfb1b9c605d7cd6197b2888e2e
parent 86de179f4a6338725cd910d88675f63e092586bc
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
Date: Mon, 17 Jan 2022 20:22:27 -0500
use consistent argument format in --help output
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -84,7 +84,7 @@ class Serve : CliktCommand("Run nexus HTTP server") {
class ParseCamt : CliktCommand("Parse a camt file") {
private val logLevel by option()
- private val filename by argument()
+ private val filename by argument("FILENAME", "File in CAMT format")
override fun run() {
setLogLevel(logLevel)
val camtText = File(filename).readText(Charsets.UTF_8)
@@ -109,7 +109,7 @@ class ResetTables : CliktCommand("Drop all the tables from the database") {
}
class Superuser : CliktCommand("Add superuser or change pw") {
- private val username by argument()
+ private val username by argument("USERNAME", "User name of superuser")
private val password by option().prompt(requireConfirmation = true, hideInput = true)
override fun run() {
execThrowableOrTerminate {