From 920385335e11d14a168e8cbaa6aa49e0e377ce6d Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Wed, 13 Nov 2024 23:49:52 +0100 Subject: [PATCH] fix: escape square brackets in help text for rich markup --- examples/04_rich_markup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/04_rich_markup.py b/examples/04_rich_markup.py index 31609cbe..b8b8f54b 100644 --- a/examples/04_rich_markup.py +++ b/examples/04_rich_markup.py @@ -8,7 +8,7 @@ @click.option( "--input", type=click.Path(), - help="Input [magenta bold]file[/]. [dim][default: a custom default][/]", + help=r"Input [magenta bold]file[/]. [dim]\[default: a custom default][/]", ) @click.option( "--type",