We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e907c commit 74a0fa5Copy full SHA for 74a0fa5
src/manhole/cli.py
@@ -27,7 +27,7 @@
27
SIG_NUMBERS.add(num)
28
29
30
-def parse_pid(value, regex=re.compile(r'^.+(/manhole-)?(?P<pid>\d+)$')):
+def parse_pid(value, regex=re.compile(r'^(.*/manhole-)?(?P<pid>\d+)$')):
31
match = regex.match(value)
32
if not match:
33
raise argparse.ArgumentTypeError("PID must be in one of these forms: 1234 or /tmp/manhole-1234")
0 commit comments