Skip to content

Commit 6cc716b

Browse files
committed
cli/formatter(style[help]): align example colors
1 parent b75d354 commit 6cc716b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/vcspull/cli/_formatter.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def _colorize_example_line(
9393
parts: list[str] = []
9494
expecting_value = expect_value
9595
first_token = True
96+
colored_subcommand = False
9697

9798
for match in re.finditer(r"\s+|\S+", content):
9899
token = match.group()
@@ -117,7 +118,10 @@ def _colorize_example_line(
117118
token_for_matching in OPTIONS_EXPECTING_VALUE
118119
)
119120
elif first_token:
120-
color = theme.heading
121+
color = theme.prog
122+
elif not colored_subcommand:
123+
color = theme.action
124+
colored_subcommand = True
121125
else:
122126
color = None
123127

0 commit comments

Comments
 (0)