Minor, slightly improve rendering for -Xlist-phases
Remove ':' after phase name, render "(Disabled)" instead of "(Enabled)".
This commit is contained in:
committed by
Space Team
parent
3f2b51151f
commit
11504fda18
+7
-3
@@ -93,10 +93,14 @@ class PhaseConfig(
|
||||
|
||||
fun list() {
|
||||
compoundPhase.getNamedSubphases().forEach { (depth, phase) ->
|
||||
val enabled = if (phase in enabled) "(Enabled)" else ""
|
||||
val verbose = if (phase in verbose) "(Verbose)" else ""
|
||||
val disabled = if (phase !in enabled) " (Disabled)" else ""
|
||||
val verbose = if (phase in verbose) " (Verbose)" else ""
|
||||
|
||||
println(String.format("%1$-50s %2$-50s %3$-10s", "${" ".repeat(depth)}${phase.name}:", phase.description, "$enabled $verbose"))
|
||||
println(
|
||||
"%1$-50s %2$-50s %3$-10s".format(
|
||||
"${" ".repeat(depth)}${phase.name}", phase.description, "$disabled$verbose"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user