1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Added --version argument to app.

This commit is contained in:
Erik C. Thauvin 2018-01-20 17:04:56 -08:00
parent 41ba68c630
commit 22d983d559
2 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,10 @@ class Main @Inject constructor(
jc.usage()
return 0
}
if (args.version) {
println("Kobalt ${Kobalt.version}")
return 0
}
Kobalt.init(MainModule(args, KobaltSettings.readSettingsXml()))
val result = launchMain(Kobalt.INJECTOR.getInstance(Main::class.java), jc, args, argv)
return result