Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #37 from tanishiking/show-right-version-of-scalaunfmt
Browse files Browse the repository at this point in the history
Show right version of scalaunfmt in help message
  • Loading branch information
tanishiking authored Sep 21, 2019
2 parents 1380d5d + d551e2e commit 20f7ee7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ val scoptV = "3.7.1"
val similarityV = "1.2.1"

lazy val scalaunfmt = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
name := "scalaunfmt",
organization := "com.github.tanishiking",
Expand All @@ -30,6 +31,9 @@ lazy val scalaunfmt = (project in file(".")).
"-opt-inline-from"
),

buildInfoKeys := Seq[BuildInfoKey](version),
buildInfoPackage := "com.github.tanishiking.scalaunfmt",

homepage := Some(url("https://github.com/tanishiking/scalaunfmt")),
licenses := List("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),
developers := List(
Expand Down
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.5")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.2")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package com.github.tanishiking.scalaunfmt.cli
package com.github.tanishiking.scalaunfmt
package cli

import java.io.File

Expand All @@ -8,7 +9,7 @@ object CliArgParser {
val scoptParser: OptionParser[CliOptions] =
new scopt.OptionParser[CliOptions]("scalaunfmt") {

head("scalaunfmt", "0.0.3")
head("scalaunfmt", BuildInfo.version)
arg[File]("<file>...")
.optional()
.unbounded()
Expand Down

0 comments on commit 20f7ee7

Please sign in to comment.