@@ -369,7 +369,7 @@ void loadArgs(int argc, char *argv[])
369369 {
370370 _userFolder = CrossPlatform::endPath (argv[i]);
371371 }
372- else if (argname == " cfg" )
372+ else if (argname == " cfg" || argname == " config " )
373373 {
374374 _configFolder = CrossPlatform::endPath (argv[i]);
375375 }
@@ -401,7 +401,7 @@ bool showHelp(int argc, char *argv[])
401401 help << " use PATH as the default Data Folder instead of auto-detecting" << std::endl << std::endl;
402402 help << " -user PATH" << std::endl;
403403 help << " use PATH as the default User Folder instead of auto-detecting" << std::endl << std::endl;
404- help << " -cfg PATH" << std::endl;
404+ help << " -cfg PATH or -config PATH " << std::endl;
405405 help << " use PATH as the default Config Folder instead of auto-detecting" << std::endl << std::endl;
406406 help << " -KEY VALUE" << std::endl;
407407 help << " set option KEY to VALUE instead of default/loaded value (eg. -displayWidth 640)" << std::endl << std::endl;
@@ -798,9 +798,9 @@ void updateOptions()
798798 save ();
799799 }
800800
801- // now apply options set on the command line, overriding defaults and those loaded from config file
801+ // now apply options set on the command line, overriding defaults and those loaded from config file
802802 // if (!_commandLine.empty())
803- for (std::vector<OptionInfo>::iterator i = _info.begin (); i != _info.end (); ++i)
803+ for (std::vector<OptionInfo>::iterator i = _info.begin (); i != _info.end (); ++i)
804804 {
805805 i->load (_commandLine);
806806 }
0 commit comments