aboutsummaryrefslogtreecommitdiffstats
path: root/src/initlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/initlog.c')
-rw-r--r--src/initlog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/initlog.c b/src/initlog.c
index 5905e16c..39579eeb 100644
--- a/src/initlog.c
+++ b/src/initlog.c
@@ -413,6 +413,11 @@ int processArgs(int argc, char **argv, int silent) {
fprintf(stderr, _("--name requires one of --event or --string\n"));
return -1;
}
+ if (cmdevent && cmd) {
+ if (!silent)
+ fprintf(stderr, _("--cmd and --run are incompatible with --event\n"));
+ return -1;
+ }
if (conffile) {
readConfiguration(conffile);
} else {