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:
parent
41ba68c630
commit
22d983d559
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue