Skip to content

Commit d7a50cf

Browse files
author
Tiuxi
committed
🐛 Fix invalid escape sequence
1 parent 775ce88 commit d7a50cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gen-man.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ def generateManPage():
143143

144144
# short option (-opt)
145145
if "short" in keyList:
146-
print(f"\-{ option['short'] }", end="")
146+
print(f"\\-{ option['short'] }", end="")
147147
# if also have a long option, print a comma
148148
if "long" in keyList:
149149
print(", ", end="")
150150

151151
# long option (--option)
152152
if "long" in keyList:
153-
print(f"\-\-{ option['long'] }", end="")
153+
print(f"\\-\\-{ option['long'] }", end="")
154154

155155
print(endBold, end=" ")
156156

0 commit comments

Comments
 (0)