Avoid FOUC on API help and pretty-printed output

Bug: T76268
Change-Id: Ie1e087cad764cd7c8f84e2a7b3fb2dc5083cabaf
Merge "Avoid FOUC on API help and pretty-printed output"