ENH: add '-help-notes' as an advanced option

- emits the notes description only
This commit is contained in:
Mark Olesen
2019-01-10 15:21:24 +01:00
parent 00cbf5564b
commit 030877f8af
2 changed files with 8 additions and 0 deletions

View File

@ -878,6 +878,12 @@ void Foam::argList::parse
printUsage(true); printUsage(true);
quickExit = true; quickExit = true;
} }
else if (options_.found("help-notes"))
{
printNotes();
Info<< nl;
quickExit = true;
}
else if (options_.found("help")) else if (options_.found("help"))
{ {
printUsage(false); printUsage(false);

View File

@ -314,6 +314,7 @@ void Foam::argList::printMan() const
} }
printManOption("help-man", "Display full help (manpage format) and exit"); printManOption("help-man", "Display full help (manpage format) and exit");
printManOption("help-notes", "Display help notes (description) and exit");
printManCompat(); printManCompat();
@ -407,6 +408,7 @@ void Foam::argList::printUsage(bool full) const
if (full) if (full)
{ {
printOption("help-man", "Display full help (manpage format) and exit"); 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"); printOption("help-full", "Display full help and exit");