mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix ptvsd.server command line parsing for filenames on Python 2.
This commit is contained in:
parent
a698340985
commit
c5feeea05b
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ def parse(args):
|
|||
|
||||
switch = arg if arg.startswith('-') else ''
|
||||
for i, (sw, placeholder, action, _) in enumerate(unseen_switches):
|
||||
if isinstance(sw, str):
|
||||
if not isinstance(sw, tuple):
|
||||
sw = (sw,)
|
||||
if switch in sw:
|
||||
del unseen_switches[i]
|
||||
|
|
@ -179,7 +179,7 @@ def parse(args):
|
|||
|
||||
for sw, placeholder, _, required in unseen_switches:
|
||||
if required:
|
||||
if not isinstance(sw, str):
|
||||
if isinstance(sw, tuple):
|
||||
sw = sw[0]
|
||||
message = 'missing required %s' % sw
|
||||
if placeholder is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue