summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mdns-repeater.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdns-repeater.c b/mdns-repeater.c
index 05aa002..8192146 100644
--- a/mdns-repeater.c
+++ b/mdns-repeater.c
@@ -264,6 +264,12 @@ static int parse_opts(int argc, char *argv[]) {
switch (c) {
case 'h': help = 1; break;
case 'f': foreground = 1; break;
+
+ case '?':
+ case ':':
+ fputs("\n", stderr);
+ break;
+
default:
fprintf(stderr, "unknown option %c\n", optopt);
exit(2);