This commit is contained in:
Kovid Goyal 2019-11-17 08:35:23 +05:30
parent d8dd22048a
commit d5682fe49a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -76,6 +76,9 @@ def parse_ssh_args(args):
if arg in boolean_ssh_args:
ssh_args.append(arg)
continue
if arg.startswith('-p') and arg[2:].isdigit():
ssh_args.append(arg)
continue
if arg in other_ssh_args:
if i != len(all_args) - 1:
raise SystemExit('Option {} cannot occur in the middle'.format(arg))