aboutsummaryrefslogtreecommitdiffstats
path: root/manual/_ext
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-27 14:29:40 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commite091b6c9d01f7ac910a2031c4db5fdcbb6dd2d27 (patch)
tree35e386256968e6386cc7953223f26afb7158fd4b /manual/_ext
parentce740d987f1d129bc6b43071e95ee8f098caad05 (diff)
downloadqpdf-e091b6c9d01f7ac910a2031c4db5fdcbb6dd2d27.tar.zst
Allow --x[=y] in option help short text
Diffstat (limited to 'manual/_ext')
-rw-r--r--manual/_ext/qpdf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/_ext/qpdf.py b/manual/_ext/qpdf.py
index 032aa86c..bb13b8b5 100644
--- a/manual/_ext/qpdf.py
+++ b/manual/_ext/qpdf.py
@@ -21,7 +21,7 @@ class OptionDirective(ObjectDescription):
return sig
def add_target_and_index(self, name_cls, sig, signode):
- m = re.match(r'^--([^= ]+)', sig)
+ m = re.match(r'^--([^\[= ]+)', sig)
if not m:
raise Exception('option must start with --')
option_name = m.group(1)
@@ -42,7 +42,7 @@ class OptionIndex(Index):
# name, subtype, docname, anchor, extra, qualifier, description
for name, display_name, typ, docname, anchor, _ in options:
- m = re.match(r'^(--([^= ]+))', display_name)
+ m = re.match(r'^(--([^\[= ]+))', display_name)
if not m:
raise Exception(
'OptionIndex.generate: display name not as expected')