aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hlr.c')
-rw-r--r--src/hlr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hlr.c b/src/hlr.c
index a71b7e1..c3737d5 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -792,6 +792,11 @@ static void handle_options(int argc, char **argv)
break;
}
}
+
+ if (argc > optind) {
+ fprintf(stderr, "Unsupported positional arguments on command line\n");
+ exit(2);
+ }
}
static void signal_hdlr(int signal)