mirror of
https://github.com/ij-plugins/ijp-imagej-launcher.git
synced 2024-11-13 16:29:01 -08:00
Add parsing of command line options
This commit is contained in:
parent
4f7829eea8
commit
e263bfaf7b
9 changed files with 180 additions and 9 deletions
16
build.sbt
16
build.sbt
|
|
@ -5,12 +5,24 @@ enablePlugins(ScalaNativePlugin)
|
|||
// set to Debug for compilation details (Info is default)
|
||||
logLevel := Level.Info
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"com.github.scopt" %%% "scopt" % "4.1.0"
|
||||
)
|
||||
|
||||
Compile/run/mainClass := Some("ij_plugins.imagej_launcher.Main")
|
||||
|
||||
// import to add Scala Native options
|
||||
import scala.scalanative.build._
|
||||
|
||||
|
||||
// defaults set with common options shown
|
||||
nativeConfig ~= { c =>
|
||||
c.withLTO(LTO.none) // thin
|
||||
c.withLTO(LTO.none) // thin
|
||||
.withMode(Mode.debug) // releaseFast
|
||||
.withGC(GC.immix) // commix
|
||||
.withGC(GC.immix) // commix
|
||||
}
|
||||
|
||||
//// Enable verbose reporting during compilation
|
||||
//nativeConfig ~= { c =>
|
||||
// c.withCompileOptions(c.compileOptions ++ Seq("-v"))
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue