changeset 319:1e595c7ec15f noffle

[svn] * src/noffle.c: Give usage (rather than abort()) if option is unrecognised.
author bears
date Fri, 21 Feb 2003 16:02:01 +0000
parents 9b79433f0976
children 5c6faf4e1dc9
files src/noffle.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/noffle.c	Fri Feb 21 16:01:28 2003 +0000
+++ b/src/noffle.c	Fri Feb 21 16:02:01 2003 +0000
@@ -10,7 +10,7 @@
   received for some seconds (to allow multiple clients connect at the same
   time).
 
-  $Id: noffle.c 440 2003-02-17 09:18:12Z godisch $
+  $Id: noffle.c 454 2003-02-21 16:02:01Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -911,7 +911,7 @@
       If they asked for help, give it before there's a possibility
       we could fail on init.
      */
-    if ( c == 'h' )
+    if ( c == 'h' || c == -1 )
     {
         printUsage();
 	return EXIT_SUCCESS;