From ce7014da31c3cf88d8c7c78c43cfa3e5cfb4e391 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sun, 2 Jun 2024 19:23:33 +0300 Subject: [PATCH] ChryseScallopConf: get version of user app correctly. --- src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala b/src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala index bc9c5fc..83fcbde 100644 --- a/src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala +++ b/src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala @@ -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()})"