Move subcommands to init block for consistency

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent c20dad7a5e
commit eae715231b
  1. 10
      all/src/main/java/dev/openrs2/Command.kt

@ -10,7 +10,11 @@ import dev.openrs2.deob.DeobfuscateCommand
import dev.openrs2.deob.ast.DeobfuscateAstCommand import dev.openrs2.deob.ast.DeobfuscateAstCommand
import dev.openrs2.game.GameCommand import dev.openrs2.game.GameCommand
fun main(args: Array<String>) = Command().subcommands( fun main(args: Array<String>) = Command().main(args)
class Command : CliktCommand(name = "openrs2") {
init {
subcommands(
BundleCommand(), BundleCommand(),
CompressCommand(), CompressCommand(),
Crc32Command(), Crc32Command(),
@ -18,9 +22,9 @@ fun main(args: Array<String>) = Command().subcommands(
DeobfuscateCommand(), DeobfuscateCommand(),
DeobfuscateAstCommand(), DeobfuscateAstCommand(),
GameCommand() GameCommand()
).main(args) )
}
class Command : CliktCommand(name = "openrs2") {
override fun run() { override fun run() {
// empty // empty
} }

Loading…
Cancel
Save