mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-26 08:38:51 +01:00
Don't require -d with -x or -y since it could be in the config file.
This commit is contained in:
parent
7462c03281
commit
8ec3e5725c
@ -49,9 +49,6 @@ cmd_new_session_check(struct args *args)
|
|||||||
{
|
{
|
||||||
if (args_has(args, 't') && (args->argc != 0 || args_has(args, 'n')))
|
if (args_has(args, 't') && (args->argc != 0 || args_has(args, 'n')))
|
||||||
return (-1);
|
return (-1);
|
||||||
if (!args_has(args, 'd') &&
|
|
||||||
(args_has(args, 'x') || args_has(args, 'y')))
|
|
||||||
return (-1);
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user