Skip to content

Commit 9203853

Browse files
committed
fix: escape square brackets in help text for rich markup
1 parent f82e522 commit 9203853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/04_rich_markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@click.option(
99
"--input",
1010
type=click.Path(),
11-
help="Input [magenta bold]file[/]. [dim][default: a custom default][/]",
11+
help=r"Input [magenta bold]file[/]. [dim]\[default: a custom default][/]",
1212
)
1313
@click.option(
1414
"--type",

0 commit comments

Comments
 (0)