Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
ChryseScallopConf: get version of user app correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jun 2, 2024
1 parent 909f023 commit ce7014d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import org.rogach.scallop.Subcommand
// TODO (Scallop): Show parent version string on subcommand help.
private[chryse] class ChryseScallopConf(chryse: ChryseApp, args: Array[String])
extends ScallopConf(args) {
private val appVersion = getClass().getPackage().getImplementationVersion()
private val appVersion =
chryse.getClass().getPackage().getImplementationVersion()
val versionBanner = s"${chryse.name} $appVersion (Chryse " +
s"${ChryseApp.getChrysePackage().getImplementationVersion()})"

Expand Down

0 comments on commit ce7014d

Please sign in to comment.