From 52149814e30b4471588f9dba9b2661b0283bd57f Mon Sep 17 00:00:00 2001 From: special Date: Thu, 9 Apr 2009 09:22:27 +0000 Subject: 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 --- src/inspircd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f53484b74..11ea679e7 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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 ]\n\ [--runasroot] [--version] [--config ] [--testsuite]\n", argv[0]); Exit(EXIT_STATUS_ARGV); -- cgit v1.2.3