Re-add the default case to commandline parsing (if it happens, it's better to know than to do nothing) and fix a small typo

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11299 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
special 2009-04-09 09:22:27 +00:00
parent a17a8a0716
commit 52149814e3

View File

@ -463,7 +463,9 @@ InspIRCd::InspIRCd(int argc, char** argv)
break;
case '?':
/* Unknown parameter */
printf("Uknown parameter '%s'\n", argv[index]);
default:
/* Fall through to handle other weird values too */
printf("Unknown parameter '%s'\n", argv[index]);
printf("Usage: %s [--nofork] [--nolog] [--debug] [--logfile <filename>]\n\
[--runasroot] [--version] [--config <config>] [--testsuite]\n", argv[0]);
Exit(EXIT_STATUS_ARGV);