From f7df31ceacd2c2336b49ae21fc179e6927b57083 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Wed, 29 Jul 2020 19:29:52 +0200 Subject: [PATCH] commands will now be case insensitive add TODO.txt --- TODO.txt | 1 + src/main/kotlin/ley/anvil/modpacktools/Main.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 TODO.txt diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..801e822 --- /dev/null +++ b/TODO.txt @@ -0,0 +1 @@ +add commands for adding mods diff --git a/src/main/kotlin/ley/anvil/modpacktools/Main.kt b/src/main/kotlin/ley/anvil/modpacktools/Main.kt index cbe6942..c3b85f5 100644 --- a/src/main/kotlin/ley/anvil/modpacktools/Main.kt +++ b/src/main/kotlin/ley/anvil/modpacktools/Main.kt @@ -57,7 +57,7 @@ fun runCommand(args: Array) { println(helpMessage) } else { try { - val ret = LOADER.runCommand(args[0], args) + val ret = LOADER.runCommand(args[0].toLowerCase(), args) if(ret.hasRet()) println(ret.ret) } catch(e: NoSuchElementException) {