chiark / gitweb /
Exit nonzero if any unknown options are provided on the command line. origin/master
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 9 Jul 2011 12:17:25 +0000 (13:17 +0100)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Sat, 9 Jul 2011 12:17:25 +0000 (13:17 +0100)
Signed-off-by: Richard Kettlewell <rjk@greenend.org.uk>
secnet.c

index 1a4e8fd..f9808b7 100644 (file)
--- a/secnet.c
+++ b/secnet.c
@@ -141,6 +141,7 @@ static void parse_options(int argc, char **argv)
            break;
 
        case '?':
+           exit(1);
            break;
 
        default: