Skip to content

Commit 266f1b9

Browse files
committed
Fix small bugs
1 parent e5bf631 commit 266f1b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/mycmd/App.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void main(String[] args) {
4242
}
4343
} else {
4444
// Single, clear not-recognized message + optional suggestion
45-
System.out.println("Unknown command: '" + cmd + "'. Enter 'help' to list all available commands.");
45+
System.out.println("Unknown command: '" + cmd + "'. Enter '" + CommandNames.HELP + "' to list all available commands.");
4646

4747
// compute suggestion safely
4848
try {
@@ -73,8 +73,8 @@ private static String resolveAliases(String input, ShellContext context) {
7373
return input;
7474
}
7575

76-
public final class CommandNames {
77-
private CommandNames() {}
76+
private static final class CommandNames {
77+
private CommandNames() {}
7878
public static final String DIR = "dir";
7979
public static final String CD = "cd";
8080
public static final String ECHO = "echo";

0 commit comments

Comments
 (0)