diff --git a/src/OpenFOAM/global/argList/argListHelp.C b/src/OpenFOAM/global/argList/argListHelp.C index 56386c90690f950bdcab67e8183a39ed6b696e3c..850359654c0f11572341c1a3fdbf2edfa87cb697 100644 --- a/src/OpenFOAM/global/argList/argListHelp.C +++ b/src/OpenFOAM/global/argList/argListHelp.C @@ -284,7 +284,6 @@ void Foam::argList::printMan() const // Standard documentation/help options printManOption("doc", "Display documentation in browser"); - printManOption("doc-source", "Display source code in browser"); printManOption("help", "Display short help and exit"); printManOption("help-full", "Display full help and exit"); @@ -301,6 +300,8 @@ void Foam::argList::printMan() const } } + printManOption("doc-source", "Display source code in browser"); + const bool hasCompat = ( @@ -393,7 +394,10 @@ void Foam::argList::printUsage(bool full) const // Place documentation/help options at the end printOption("doc", "Display documentation in browser"); - printOption("doc-source", "Display source code in browser"); + if (full) + { + printOption("doc-source", "Display source code in browser"); + } printOption("help", "Display short help and exit"); if