diff --git a/src/main.c b/src/main.c index 52d80347..918663d0 100644 --- a/src/main.c +++ b/src/main.c @@ -583,7 +583,7 @@ main (int argc, } } - if (argc <= 1 || (attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1)) + if ((attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1)) { ply_error ("%s [--attach-to-session ]", argv[0]); return EX_USAGE;