From 702afb5c75c86165c65002922a0320ffbbc7b2f1 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 24 Sep 2024 11:07:53 +0200 Subject: [PATCH] align password parameters --- src/main/java/org/cryptomator/cli/PasswordSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/cli/PasswordSource.java b/src/main/java/org/cryptomator/cli/PasswordSource.java index ebec08c..4e8b96a 100644 --- a/src/main/java/org/cryptomator/cli/PasswordSource.java +++ b/src/main/java/org/cryptomator/cli/PasswordSource.java @@ -11,7 +11,7 @@ public class PasswordSource { - @CommandLine.Option(names = {"--password"}, paramLabel = "Passphrase", description = "Passphrase, read from STDIN") + @CommandLine.Option(names = {"--password:stdin"}, paramLabel = "Passphrase", description = "Passphrase, read from STDIN") boolean passphraseStdin; @CommandLine.Option(names = "--password:env", description = "Name of the environment variable containing the passphrase") @@ -38,7 +38,7 @@ Passphrase readPassphrase() throws IOException { } private Passphrase readPassphraseFromStdin() { - System.out.println("Enter a value for --password:"); + System.out.println("Enter the password:"); var console = System.console(); if (console == null) { throw new IllegalStateException("No console found to read password from.");