diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-27 14:29:40 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | e091b6c9d01f7ac910a2031c4db5fdcbb6dd2d27 (patch) | |
tree | 35e386256968e6386cc7953223f26afb7158fd4b /manual | |
parent | ce740d987f1d129bc6b43071e95ee8f098caad05 (diff) | |
download | qpdf-e091b6c9d01f7ac910a2031c4db5fdcbb6dd2d27.tar.zst |
Allow --x[=y] in option help short text
Diffstat (limited to 'manual')
-rw-r--r-- | manual/_ext/qpdf.py | 4 |
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') |