mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Only add to server_args unconditionally if two non-option args have been seen
This commit is contained in:
parent
d319180e88
commit
06237b85f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue