-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsyntax_test_sbt.txt
63 lines (57 loc) · 3.46 KB
/
syntax_test_sbt.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# SYNTAX TEST "cmd-help.sublime-syntax"
Usage: sbt [options]
-h | --help print this message
# ^^ entity.name.function.option.cmd-help
# ^^^ - entity.name.function.option.cmd-help
# ^^^^^^ entity.name.function.option.cmd-help
-v | --verbose this runner is chattier
-V | --version print sbt version information
--numeric-version print the numeric sbt version (sbt sbtVersion)
--script-version print the version of sbt script
-d | --debug set sbt log level to debug
-debug-inc | --debug-inc
enable extra debugging for the incremental debugger
--no-colors disable ANSI color codes
--color=auto|always|true|false|never
# ^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
#nice: refactor idea: handle this with a single regex like (|arg)+
# and scope match 1 (|) like default and 2 (arg) like arguments
enable or disable ANSI color codes (sbt 1.3 and above)
--supershell=auto|always|true|false|never
enable or disable supershell (sbt 1.3 and above)
--traces generate Trace Event report on shutdown (sbt 1.3 and above)
--timings display task timings report on shutdown
--sbt-create start sbt even if current directory contains no sbt project
--sbt-dir <path> path to global settings/plugins directory (default: ~/.sbt)
# ^^^^^^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
#nice: handle option arguments with \s+ padding
--sbt-boot <path> path to shared boot directory (default: ~/.sbt/boot in 0.11 series)
--ivy <path> path to local Ivy repository (default: ~/.ivy2)
--mem <integer> set memory options (default: 1024)
--no-share use all local caches; no sharing
--no-global uses global caches, but does not use global ~/.sbt directory.
--jvm-debug <port> Turn on JVM debugging, open at the given port.
--batch disable interactive mode
# sbt version (default: from project/build.properties if present, else latest release)
--sbt-version <version> use the specified version of sbt
--sbt-jar <path> use the specified jar as the sbt launcher
# java version (default: java from PATH, currently openjdk version "1.8.0_292")
--java-home <path> alternate JAVA_HOME
# jvm options and output control
JAVA_OPTS environment variable, if unset uses "-Dfile.encoding=UTF-8"
# ^^^^^^^^^ keyword.other.variable.cmd-help
.jvmopts if this file exists in the current directory, its contents
# ^^^^^^^^ variable.parameter.pathname.cmd-help
are appended to JAVA_OPTS
SBT_OPTS environment variable, if unset uses ""
.sbtopts if this file exists in the current directory, its contents
are prepended to the runner args
/etc/sbt/sbtopts if this file exists, it is prepended to the runner args
# ^^^^^^^^^^^^^^^^ variable.parameter.pathname.cmd-help
-Dkey=val pass -Dkey=val directly to the java runtime
-J-X pass option -X directly to the java runtime
(-J is stripped)
-S-X add -X to sbt's scalacOptions (-S is stripped)
In the case of duplicated or conflicting options, the order above
shows precedence: JAVA_OPTS lowest, command line options highest.