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