Commit e273893a authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: add separate printNotes() method to argList

parent 90cb1973
......@@ -750,6 +750,25 @@ Foam::argList::~argList()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::argList::printNotes() const
{
// output notes directly - no automatic text wrapping
if (!notes.empty())
{
Info<< nl;
for
(
SLList<string>::const_iterator iter = notes.begin();
iter != notes.end();
++iter
)
{
Info<< iter().c_str() << nl;
}
}
}
void Foam::argList::printUsage() const
{
Info<< "\nUsage: " << executable_ << " [OPTIONS]";
......@@ -819,20 +838,7 @@ void Foam::argList::printUsage() const
);
// output notes directly - no automatic text wrapping
if (!notes.empty())
{
Info<< nl;
for
(
SLList<string>::const_iterator iter = notes.begin();
iter != notes.end();
++iter
)
{
Info<< iter().c_str() << nl;
}
}
printNotes();
Info<< nl
<<"Using OpenFOAM-" << Foam::FOAMversion
......
......@@ -329,6 +329,9 @@ public:
// Print
//- Print notes (if any)
void printNotes() const;
//- Print usage
void printUsage() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment