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

Commit ce7014d

Browse files
committed
ChryseScallopConf: get version of user app correctly.
1 parent 909f023 commit ce7014d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/ee/hrzn/chryse/ChryseScallopConf.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import org.rogach.scallop.Subcommand
2424
// TODO (Scallop): Show parent version string on subcommand help.
2525
private[chryse] class ChryseScallopConf(chryse: ChryseApp, args: Array[String])
2626
extends ScallopConf(args) {
27-
private val appVersion = getClass().getPackage().getImplementationVersion()
27+
private val appVersion =
28+
chryse.getClass().getPackage().getImplementationVersion()
2829
val versionBanner = s"${chryse.name} $appVersion (Chryse " +
2930
s"${ChryseApp.getChrysePackage().getImplementationVersion()})"
3031

0 commit comments

Comments
 (0)