@@ -388,12 +388,10 @@ usage() {
388
388
set_sbt_version
389
389
cat << EOM
390
390
Usage: $script_name [options]
391
-
392
391
Note that options which are passed along to sbt begin with -- whereas
393
392
options to this runner use a single dash. Any sbt command can be scheduled
394
393
to run first by prefixing the command with --, so --warn, --error and so on
395
394
are not special.
396
-
397
395
-h | -help print this message
398
396
-v verbose operation (this runner is chattier)
399
397
-d, -w, -q aliases for --debug, --warn, --error (q means quiet)
@@ -411,15 +409,13 @@ are not special.
411
409
-batch Disable interactive mode
412
410
-prompt <expr> Set the sbt prompt; in expr, 's' is the State and 'e' is Extracted
413
411
-script <file> Run the specified file as a scala script
414
-
415
412
# sbt version (default: sbt.version from $buildProps if present, otherwise $sbt_release_version )
416
413
-sbt-version <version> use the specified version of sbt (default: $sbt_release_version )
417
414
-sbt-force-latest force the use of the latest release of sbt: $sbt_release_version
418
415
-sbt-dev use the latest pre-release version of sbt: $sbt_unreleased_version
419
416
-sbt-jar <path> use the specified jar as the sbt launcher
420
417
-sbt-launch-dir <path> directory to hold sbt launchers (default: $sbt_launch_dir )
421
418
-sbt-launch-repo <url> repo url for downloading sbt launcher jar (default: $( url_base " $sbt_version " ) )
422
-
423
419
# scala version (default: as chosen by sbt)
424
420
-28 use $latest_28
425
421
-29 use $latest_29
@@ -430,10 +426,8 @@ are not special.
430
426
-scala-home <path> use the scala build at the specified directory
431
427
-scala-version <version> use the specified version of scala
432
428
-binary-version <version> use the specified scala version when searching for dependencies
433
-
434
429
# java version (default: java from PATH, currently $( java -version 2>&1 | grep version) )
435
430
-java-home <path> alternate JAVA_HOME
436
-
437
431
# passing options to the jvm - note it does NOT use JAVA_OPTS due to pollution
438
432
# The default set is used if JVM_OPTS is unset and no -jvm-opts file is found
439
433
<default> $( default_jvm_opts)
@@ -443,14 +437,12 @@ are not special.
443
437
-jvm-opts <path> file containing jvm args (if not given, .jvmopts in project root is used if present)
444
438
-Dkey=val pass -Dkey=val directly to the jvm
445
439
-J-X pass option -X directly to the jvm (-J is stripped)
446
-
447
440
# passing options to sbt, OR to this runner
448
441
SBT_OPTS environment variable holding either the sbt args directly, or
449
442
the reference to a file containing sbt args if given path is prepended by '@' (e.g. '@/etc/sbtopts')
450
443
Note: "@"-file is overridden by local '.sbtopts' or '-sbt-opts' argument.
451
444
-sbt-opts <path> file containing sbt args (if not given, .sbtopts in project root is used if present)
452
445
-S-X add -X to sbt's scalacOptions (-S is stripped)
453
-
454
446
# passing options exclusively to this runner
455
447
SBTX_OPTS environment variable holding either the sbt-extras args directly, or
456
448
the reference to a file containing sbt-extras args if given path is prepended by '@' (e.g. '@/etc/sbtxopts')
603
595
$( pwd) doesn't appear to be an sbt project.
604
596
If you want to start sbt anyway, run:
605
597
$0 -sbt-create
606
-
607
598
EOM
608
599
exit 1
609
600
}
0 commit comments