mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Only add to server_args unconditionally if two non-option args have been seen
This commit is contained in:
@@ -49,10 +49,10 @@ def parse_ssh_args(args):
|
||||
expecting_option_val = False
|
||||
passthrough = False
|
||||
for arg in args:
|
||||
if server_args:
|
||||
if len(server_args) > 1:
|
||||
server_args.append(arg)
|
||||
continue
|
||||
if arg.startswith('-'):
|
||||
if arg.startswith('-') and not expecting_option_val:
|
||||
all_args = arg[1:]
|
||||
for i, arg in enumerate(all_args):
|
||||
arg = '-' + arg
|
||||
|
||||
Reference in New Issue
Block a user