Fixup command registration once again (#3937)

This commit is contained in:
EnZaXD 2024-06-13 19:21:52 +02:00 committed by GitHub
parent 72cc9e9968
commit 4a70e0ea2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ import java.util.stream.Collectors;
public class DisplayLeaksSubCmd implements ViaSubCommand {
@Override
public String name() {
return "displayleaks <level>";
return "displayleaks";
}
@Override
@ -35,6 +35,11 @@ public class DisplayLeaksSubCmd implements ViaSubCommand {
return "Try to hunt memory leaks!";
}
@Override
public String usage() {
return "displayleaks <level>";
}
@Override
public boolean execute(ViaCommandSender sender, String[] args) {
if (args.length == 1) {