Skip to content

Commit

Permalink
Update ConfigCommand.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Mar 26, 2024
1 parent 0a66084 commit e26732b
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,18 @@ class ConfigCommand : Command("config", arrayOf("c")) {
if (args.isEmpty()) return emptyList()

return when (args.size) {
1 -> listOf("delete", "list", "load", "l", "save", "fix", "folder", "onlineload", "onlinelist").filter {
1 -> listOf(
"delete",
"d",
"list",
"load",
"l",
"save",
"fix",
"folder",
"onlineload",
"onlinelist"
).filter {
it.startsWith(
args[0],
true
Expand All @@ -219,7 +230,7 @@ class ConfigCommand : Command("config", arrayOf("c")) {

2 -> {
when (args[0].lowercase(Locale.getDefault())) {
"delete", "load", "l", "fix" -> {
"delete", "d", "load", "l", "fix" -> {
val settings = this.getLocalSettings() ?: return emptyList()

return settings
Expand Down

0 comments on commit e26732b

Please sign in to comment.