From 9c29d229e6c33e64bfa1d0359ffbef6b1782480f Mon Sep 17 00:00:00 2001 From: ansgarz Date: Sat, 26 Feb 2022 12:37:48 +0100 Subject: [PATCH] [skip ci] improve cli messages --- .../provs/configuration/application/CliTargetParser.kt | 4 ++-- .../provs/desktop/application/Application.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/configuration/application/CliTargetParser.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/configuration/application/CliTargetParser.kt index 5a904a3..6c3bccc 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/configuration/application/CliTargetParser.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/configuration/application/CliTargetParser.kt @@ -8,13 +8,13 @@ import org.domaindrivenarchitecture.provs.configuration.domain.TargetCliCommand open class CliTargetParser(name: String) : ArgParser(name) { val target by argument( ArgType.String, - description = "target: either 'local' or remote with 'user[:password]@host' (e.g. 'username@somehost.com' without password for ssh-key authorization)", + description = "target: either 'local' or remote with 'user[:password]@host'", ) val passwordInteractive by option( ArgType.Boolean, "password-interactive", "p", - "prompt for password", + "prompt for password for remote target", ).default(false) } diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/application/Application.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/application/Application.kt index 1f7a63c..e901c46 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/application/Application.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/application/Application.kt @@ -11,7 +11,7 @@ import kotlin.system.exitProcess */ fun main(args: Array) { - val cmd = CliArgumentsParser("java -jar provs-desktop.jar").parseCommand(args) + val cmd = CliArgumentsParser("provs-desktop.jar subcommand target").parseCommand(args) if (!cmd.isValid()) { println("Arguments are not valid, pls try option -h for help.") exitProcess(1)