optionStyle method
Returns a styling function for options.
Implementation
String Function(String) optionStyle(Renderer renderer) {
final color = option ?? command ?? HelpColorScheme.default_.option!;
return (text) =>
(Style()
..colorProfile = renderer.colorProfile
..hasDarkBackground = renderer.hasDarkBackground
..foreground(color))
.render(text);
}