Follow up for trace pretty printing (#1227)

This commit is contained in:
Jen Basch
2025-10-08 09:36:42 -07:00
committed by GitHub
parent cf9d87373d
commit e230fcf1a9
29 changed files with 186 additions and 119 deletions

View File

@@ -295,16 +295,15 @@ class BaseOptions : OptionGroup() {
.multiple()
.toMap()
val traceMode: TraceMode by
val traceMode: TraceMode? by
option(
names = arrayOf("--trace-mode"),
metavar = "when",
metavar = "style",
help =
"Specifies how calls to trace() are formatted. Possible values of <when> are 'default', 'pretty' and 'hidden'.",
"Specifies how calls to trace() are formatted. Possible values of <style> are 'compact' and 'pretty'.",
)
.enum<TraceMode> { it.name.lowercase() }
.single()
.default(TraceMode.DEFAULT)
// hidden option used by native tests
private val testPort: Int by