We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf4cdc commit 04adb1dCopy full SHA for 04adb1d
explainshell/manpage.py
@@ -174,6 +174,10 @@ def _parse_synopsis(base, synopsis):
174
synopsis = synopsis[len(base) + 3: -1]
175
if synopsis[-1] == ".":
176
synopsis = synopsis[:-1]
177
+
178
+ if not SPLIT_SYNOP.match(synopsis):
179
+ return []
180
181
return SPLIT_SYNOP.match(synopsis).groups()
182
183
0 commit comments