@@ -52,31 +52,58 @@ object ScalacOptions {
52
52
private val replAliasedOptions = Set (replInitScript)
53
53
private val scalacAliasedOptions = // these options don't require being passed after -O and accept an arg
54
54
Set (
55
+ " bootclasspath" ,
56
+ " boot-class-path" ,
55
57
" coverage-exclude-classlikes" ,
56
58
" coverage-exclude-files" ,
57
59
" encoding" ,
60
+ " extdirs" ,
61
+ " extension-directories" ,
62
+ " javabootclasspath" ,
63
+ " java-boot-class-path" ,
64
+ " javaextdirs" ,
65
+ " java-extension-directories" ,
66
+ " java-output-version" ,
58
67
" release" ,
59
68
" color" ,
60
69
" g" ,
61
70
" language" ,
62
71
" opt" ,
72
+ " pagewidth" ,
73
+ " page-width" ,
63
74
" target" ,
75
+ " scalajs-mapSourceURI" ,
76
+ " scalajs-genStaticForwardersForNonTopLevelObjects" ,
64
77
" source" ,
78
+ " sourcepath" ,
79
+ " source-path" ,
80
+ " sourceroot" ,
65
81
YScriptRunnerOption
66
82
) ++ replAliasedOptions
67
83
private val scalacNoArgAliasedOptions = // these options don't require being passed after -O and don't accept an arg
68
84
Set (
69
85
" experimental" ,
70
86
" explain" ,
87
+ " explaintypes" ,
88
+ " explain-types" ,
89
+ " explain-cyclic" ,
90
+ " from-tasty" ,
71
91
" unchecked" ,
72
92
" nowarn" ,
93
+ " no-warnings" ,
73
94
" feature" ,
74
95
" deprecation" ,
75
96
" rewrite" ,
97
+ " scalajs" ,
76
98
" old-syntax" ,
99
+ " print-tasty" ,
100
+ " print-lines" ,
77
101
" new-syntax" ,
78
102
" indent" ,
79
- " no-indent"
103
+ " no-indent" ,
104
+ " preview" ,
105
+ " uniqid" ,
106
+ " unique-id"
80
107
)
81
108
82
109
/** This includes all the scalac options which disregard inputs and print a help and/or context
@@ -97,8 +124,9 @@ object ScalacOptions {
97
124
/** This includes all the scalac options which are redirected to native Scala CLI options. */
98
125
val ScalaCliRedirectedOptions : Set [String ] = Set (
99
126
" classpath" ,
100
- " cp" , // redirected to --extra-jars
101
- " d" // redirected to --compilation-output
127
+ " cp" , // redirected to --extra-jars
128
+ " class-path" , // redirected to --extra-jars
129
+ " d" // redirected to --compilation-output
102
130
)
103
131
val ScalacDeprecatedOptions : Set [String ] = Set (
104
132
YScriptRunnerOption // old 'scala' runner specific, no longer supported
0 commit comments