mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Remove --multiprocess-port-range.
This commit is contained in:
parent
eebb86e016
commit
7b302c73f0
1 changed files with 1 additions and 8 deletions
|
|
@ -124,7 +124,7 @@ def _group_args(argv):
|
|||
supported.append(arg)
|
||||
|
||||
# ptvsd support
|
||||
elif arg in ('--host', '--server-host', '--port', '--pid', '-m', '-c', '--multiprocess-port-range'):
|
||||
elif arg in ('--host', '--server-host', '--port', '--pid', '-m', '-c'):
|
||||
if arg in ('-m', '-c', '--pid'):
|
||||
gottarget = True
|
||||
supported.append(arg)
|
||||
|
|
@ -165,7 +165,6 @@ def _parse_args(prog, argv):
|
|||
return arg
|
||||
|
||||
parser.add_argument('--multiprocess', action='store_true')
|
||||
parser.add_argument('--multiprocess-port-range', type=port_range)
|
||||
|
||||
target = parser.add_mutually_exclusive_group(required=True)
|
||||
target.add_argument('-m', dest='module')
|
||||
|
|
@ -194,12 +193,6 @@ def _parse_args(prog, argv):
|
|||
else:
|
||||
args.address = Address.as_client(clienthost, ns.pop('port'))
|
||||
|
||||
multiprocess_port_range = ns.pop('multiprocess_port_range')
|
||||
if multiprocess_port_range is not None:
|
||||
if not ns['multiprocess']:
|
||||
parser.error('--multiprocess-port-range requires --multiprocess')
|
||||
multiproc.subprocess_port_range = multiprocess_port_range
|
||||
|
||||
if ns['multiprocess']:
|
||||
multiproc.enable()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue