diff --git a/src/OpenFOAM/global/argList/argList.C b/src/OpenFOAM/global/argList/argList.C index 59ee6e57b5..d8b90d013b 100644 --- a/src/OpenFOAM/global/argList/argList.C +++ b/src/OpenFOAM/global/argList/argList.C @@ -168,7 +168,6 @@ Foam::argList::argList { // Check if this run is a parallel run by searching for any parallel option // If found call runPar (might filter argv) - for (int argi=0; argi args_ and capture ( ... ) lists // for normal arguments and for options regroupArgv(argc, argv); @@ -291,8 +284,10 @@ Foam::argList::argList string dateString = clock::date(); string timeString = clock::clockTime(); + // Print the banner once only for parallel runs if (Pstream::master()) { + IOobject::writeBanner(Info, true); Info<< "Exec : " << argListString.c_str() << nl << "Date : " << dateString.c_str() << nl << "Time : " << timeString.c_str() << nl @@ -609,9 +604,9 @@ void Foam::argList::printUsage() const Info<< ']'; } - // place help/doc options of the way at the end, + // place help/doc/srcDoc options of the way at the end, // but with an extra space to separate it a little - Info<< " [-help] [-doc] [-srcDoc]" << endl; + Info<< " [-help] [-doc] [-srcDoc]\n" << endl; } @@ -663,7 +658,9 @@ void Foam::argList::displayDoc(bool source) const } else { - Info<< "No documentation found" << endl; + Info<< nl + << "No documentation found for " << executable_ + << ", but you can use -help to display the usage\n" << endl; } }