Removed duplicate usage printout when moses is called with no parameters.

This commit is contained in:
Lane Schwartz 2012-09-04 17:32:55 +01:00
parent 5d9859ba0e
commit 357845c1a4
2 changed files with 2 additions and 1 deletions

View File

@ -357,7 +357,6 @@ int main(int argc, char** argv)
// (stores them as strings, or array of strings)
Parameter* params = new Parameter();
if (!params->LoadParam(argc,argv)) {
params->Explain();
exit(1);
}

View File

@ -218,7 +218,9 @@ bool Parameter::LoadParam(int argc, char* argv[])
PrintCredit();
Explain();
cerr << endl;
UserMessage::Add("No configuration file was specified. Use -config or -f");
cerr << endl;
return false;
} else {
if (!ReadConfigFile(configPath)) {