Skip to content

Commit

Permalink
common: utils: Beautify the console readline too
Browse files Browse the repository at this point in the history
- Now it aligns with Scanner
  • Loading branch information
Dhina17 committed Jul 10, 2022
1 parent 754b07a commit 3d0efdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/it/tdlight/common/utils/ScannerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static String askParameter(String displayName, String question) {
synchronized (LOCK) {
Console console = System.console();
if (console != null) {
return console.readLine("[%s] %s", displayName, question);
return console.readLine("[%s] %s: ", displayName, question);
} else {
if (scanner == null) {
scanner = new InputStreamReader(System.in);
Expand Down

0 comments on commit 3d0efdb

Please sign in to comment.