From 578c03bce0816b21f00e4ef9734e5c1c1a63dcc6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 24 Dec 2016 00:30:49 +0100 Subject: run: complain when --pty is used together with --no-block, which makes no sense --- src/run/run.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/run/run.c b/src/run/run.c index 3e3116f235..df3b47af29 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -403,6 +403,11 @@ static int parse_argv(int argc, char *argv[]) { return -EINVAL; } + if (arg_pty && arg_no_block) { + log_error("--pty is not compatible with --no-block."); + return -EINVAL; + } + if (arg_scope && with_timer()) { log_error("Timer options are not supported in --scope mode."); return -EINVAL; -- cgit v1.2.3-54-g00ecf