We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8c283 commit 9267c49Copy full SHA for 9267c49
lab5/src/commandManagers/commands/Help.java
@@ -37,8 +37,8 @@ public void execute() {
37
manager.getCommandMap().forEach((name, command) -> System.out.println(name + " : " + command.getDescr()));
38
else {
39
var command = manager.getCommandMap().get(this.getArgument());
40
- this.setArgument(null);
41
System.out.println(this.getArgument() + " : " + Optional.ofNullable(command).map(Command::getDescr).orElse("This command is not found in manager"));
+ this.setArgument(null);
42
}
43
44
0 commit comments