aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hnbgw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c
index 9dc67a2..0db04af 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -455,6 +455,11 @@ static void handle_options(int argc, char **argv)
break;
}
}
+
+ if (argc > optind) {
+ fprintf(stderr, "Unsupported positional arguments on command line\n");
+ exit(2);
+ }
}
CTRL_CMD_DEFINE_RO(hnb_info, "info");