Hầu hết chúng ta nhận được bằng scalac -help
, scalac -X
và scalac -Y
.
Đừng quên scala -help
cũng vậy.
Edit: sbt
người dùng có thể thực hiện thông thường:
> set scalacOptions in Compile += "-X"
> compile
[snip]
[info] -Xcheck-null Warn upon selection of nullable reference.
[info] -Xcheckinit Wrap field accessors to throw an exception on uninitialized access.
[info] -Xdisable-assertions Generate no assertions or assumptions.
[info] -Xdivergence211 Turn on the 2.11 behavior of implicit divergence not terminating recursive implicit searches (SI-7291).
[info] -Xelide-below <n> Calls to @elidable methods are omitted if method priority is lower than argument
[info] -Xexperimental Enable experimental extensions.
[info] -Xfatal-warnings Fail the compilation if there are any warnings.
[snip]
Ít nhất man page đã được cập nhật gần đây:
https://issues.scala-lang.org/browse/SI-7824
Nguồn
2013-09-03 23:38:48
Một ý tưởng khác là lấy nguồn và 'ant docs.comp'. Sau đó scala/build/scaladoc/compiler/index.html # scala.tools.nsc.Settings kế thừa từ std và các thiết lập khác. Thật không may, scaladoc chỉ là một danh sách. Một ý tưởng khác là lấy IDE Eclipse và duyệt các nguồn đó theo cách đó. –