File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments