From 030877f8afb9c8ff00e02a86fca21b6f95803813 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 10 Jan 2019 15:21:24 +0100 Subject: [PATCH] ENH: add '-help-notes' as an advanced option - emits the notes description only --- src/OpenFOAM/global/argList/argList.C | 6 ++++++ src/OpenFOAM/global/argList/argListHelp.C | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/OpenFOAM/global/argList/argList.C b/src/OpenFOAM/global/argList/argList.C index f7973d3287..94aa51ca8d 100644 --- a/src/OpenFOAM/global/argList/argList.C +++ b/src/OpenFOAM/global/argList/argList.C @@ -878,6 +878,12 @@ void Foam::argList::parse printUsage(true); quickExit = true; } + else if (options_.found("help-notes")) + { + printNotes(); + Info<< nl; + quickExit = true; + } else if (options_.found("help")) { printUsage(false); diff --git a/src/OpenFOAM/global/argList/argListHelp.C b/src/OpenFOAM/global/argList/argListHelp.C index 463bb2599b..56386c9069 100644 --- a/src/OpenFOAM/global/argList/argListHelp.C +++ b/src/OpenFOAM/global/argList/argListHelp.C @@ -314,6 +314,7 @@ void Foam::argList::printMan() const } printManOption("help-man", "Display full help (manpage format) and exit"); + printManOption("help-notes", "Display help notes (description) and exit"); printManCompat(); @@ -407,6 +408,7 @@ void Foam::argList::printUsage(bool full) const if (full) { printOption("help-man", "Display full help (manpage format) and exit"); + printOption("help-notes", "Display help notes (description) and exit"); } printOption("help-full", "Display full help and exit");