[PATCH 2/4] Exit nonzero if any unknown options are provided on the command line.

Richard Kettlewell rjk at terraraq.org.uk
Wed Jul 6 21:19:25 BST 2011


From: Richard Kettlewell <rjk at greenend.org.uk>

Signed-off-by: Richard Kettlewell <rjk at greenend.org.uk>
---
 secnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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




More information about the sgo-software-discuss mailing list