Invalid params should go to console

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13586 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
curaga
2013-08-28 13:51:12 +00:00
parent c353dc1013
commit 97232fe314

View File

@@ -1077,6 +1077,9 @@ int handleCmdLine(int argc, char **argv)
#endif
else
{
// invalid param needs to go to console
UserConfigParams::m_log_errors_to_console = true;
Log::error("main", "Invalid parameter: %s.\n", argv[i] );
cmdLineHelp(argv[0]);
return 0;