From 692a1c3c55c90831c0f9567bd4c1c6adb4a27e6a Mon Sep 17 00:00:00 2001 From: angt Date: Thu, 22 Oct 2015 00:46:02 +0200 Subject: [PATCH] Warn and quit if an option is unknown --- glorytun.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/glorytun.c b/glorytun.c index 57ec710..e98f66b 100644 --- a/glorytun.c +++ b/glorytun.c @@ -182,9 +182,10 @@ struct option { enum option_type type; }; -static void option (int argc, char **argv, int n, struct option *opt) +static int option (int argc, char **argv, int n, struct option *opt) { - for (int i=0; i