File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ def extract(manpage):
23
23
opt_regex = re .compile (r'''
24
24
(?P<opt>--?(?:\?|\#|(?:\w+-)*\w+)) # option starts with - or -- and can have - in the middle but not at the end, also allow '-?'
25
25
(?:
26
- (?:\s* (=)?\s* ) # -a=
26
+ (?:\s? (=)?\s? ) # -a=
27
27
(?P<argoptional>[<\[])? # -a=< or -a=[
28
- (?:\s* (=)?\s* ) # or maybe -a<=
28
+ (?:\s? (=)?\s? ) # or maybe -a<=
29
29
(?P<arg>
30
30
(?(argoptional) # if we think we have an arg (we saw [ or <)
31
31
[^\]>]+ # either read everything until the closing ] or >
@@ -39,7 +39,7 @@ def extract(manpage):
39
39
)
40
40
(?(argoptional)(?P<argoptionalc>[\]>])) # read closing ] or > if we have an arg
41
41
)? # the whole arg thing is optional
42
- (?P<ending>,\s*|\s+|\Z|/|\|)''' , re .X ) # read any trailing whitespace or the end of the string
42
+ (?P<ending>,\s*|\s+|\Z|/|\|)''' , re .X ) # read any trailing whitespace or the end of the string
43
43
44
44
opt2_regex = re .compile (r'''
45
45
(?P<opt>\w+) # an option that doesn't start with any of the usual characters, e.g. options from 'dd' like bs=BYTES
You can’t perform that action at this time.
0 commit comments