# HG changeset patch # User bears # Date 1045843321 0 # Node ID 1e595c7ec15f4c354bc8efc3ffda1ac901b1209d # Parent 9b79433f0976d4be544177a8e7c213747eb4902a [svn] * src/noffle.c: Give usage (rather than abort()) if option is unrecognised. diff -r 9b79433f0976 -r 1e595c7ec15f src/noffle.c --- 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;