aboutsummaryrefslogtreecommitdiffstats
path: root/man/help2man
diff options
context:
space:
mode:
Diffstat (limited to 'man/help2man')
-rwxr-xr-xman/help2man4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/help2man b/man/help2man
index da03e14da..e021ff8dc 100755
--- a/man/help2man
+++ b/man/help2man
@@ -803,7 +803,9 @@ sub convert_option
local $_ = '\fB' . shift;
s/-/\x83/g;
- unless (s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/)
+ unless (
+ s/\x83(\w)\[(.*)\]/\x83$1\\fR[\\fI$2\\fR]/ or # short form [optional]
+ s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/) # long form [optional]
{
s/=(.)/\\fR=\\fI$1/;
s/ (.)/ \\fI$1/;