Skip to content

Commit

Permalink
align password parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Sep 24, 2024
1 parent 83538f8 commit 702afb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cryptomator/cli/PasswordSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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.");
Expand Down

0 comments on commit 702afb5

Please sign in to comment.