From f5ae2a657b4352701fd2a3bcb23d245dd378d197 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Tue, 18 Apr 2023 12:16:06 +0200 Subject: [PATCH] Use build version string --- src/main/scala/uk/co/gresearch/spark/diff/App.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/scala/uk/co/gresearch/spark/diff/App.scala b/src/main/scala/uk/co/gresearch/spark/diff/App.scala index 26723ad1..03859af6 100644 --- a/src/main/scala/uk/co/gresearch/spark/diff/App.scala +++ b/src/main/scala/uk/co/gresearch/spark/diff/App.scala @@ -29,8 +29,9 @@ object App { diffOptions: DiffOptions = DiffOptions.default) // read options from args - val parser: OptionParser[Options] = new scopt.OptionParser[Options]("spark-extension_2.12-2.7.0-3.5-SNAPSHOT.jar") { - head("Spark Diff app (2.7.0-3.3-SNAPSHOT)") + val programName = s"spark-extension_${spark.BuildScalaCompatVersionString}-${spark.VersionString}.jar" + val parser: OptionParser[Options] = new scopt.OptionParser[Options](programName) { + head(s"Spark Diff app (${spark.VersionString})") head() arg[String]("left")