This commit is contained in:
Kovid Goyal 2022-03-14 13:44:18 +05:30
parent 08ce8ffa54
commit 2a50203fcd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -321,6 +321,7 @@ def get_connection_data(args: List[str], cwd: str = '', extra_args: Tuple[str, .
identity_file = arg identity_file = arg
elif expecting_extra_val: elif expecting_extra_val:
found_extra_args.append((expecting_extra_val, arg)) found_extra_args.append((expecting_extra_val, arg))
expecting_extra_val = ''
expecting_option_val = False expecting_option_val = False
continue continue
@ -399,6 +400,7 @@ def parse_ssh_args(args: List[str], extra_args: Tuple[str, ...] = ()) -> Tuple[L
if expecting_option_val: if expecting_option_val:
if expecting_extra_val: if expecting_extra_val:
found_extra_args.extend((expecting_extra_val, argument)) found_extra_args.extend((expecting_extra_val, argument))
expecting_extra_val = ''
else: else:
ssh_args.append(argument) ssh_args.append(argument)
expecting_option_val = False expecting_option_val = False