mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
argList - surround option parameters with <>
- increase usageMin to 20 to compensate for extra <> - look for _source.html instead of -source.html to match newer doxygen
This commit is contained in:
@ -43,7 +43,7 @@ Foam::SLList<Foam::string> Foam::argList::validArgs;
|
|||||||
Foam::HashTable<Foam::string> Foam::argList::validOptions;
|
Foam::HashTable<Foam::string> Foam::argList::validOptions;
|
||||||
Foam::HashTable<Foam::string> Foam::argList::validParOptions;
|
Foam::HashTable<Foam::string> Foam::argList::validParOptions;
|
||||||
Foam::HashTable<Foam::string> Foam::argList::optionUsage;
|
Foam::HashTable<Foam::string> Foam::argList::optionUsage;
|
||||||
Foam::string::size_type Foam::argList::usageMin = 16;
|
Foam::string::size_type Foam::argList::usageMin = 20;
|
||||||
Foam::string::size_type Foam::argList::usageMax = 80;
|
Foam::string::size_type Foam::argList::usageMax = 80;
|
||||||
|
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ Foam::argList::initValidTables::initValidTables()
|
|||||||
{
|
{
|
||||||
argList::addOption
|
argList::addOption
|
||||||
(
|
(
|
||||||
"case", "DIR",
|
"case", "dir",
|
||||||
"specify alternate case directory, default is the cwd"
|
"specify alternate case directory, default is the cwd"
|
||||||
);
|
);
|
||||||
argList::addBoolOption("parallel", "run in parallel");
|
argList::addBoolOption("parallel", "run in parallel");
|
||||||
@ -769,8 +769,9 @@ void Foam::argList::printUsage() const
|
|||||||
|
|
||||||
if (iter().size())
|
if (iter().size())
|
||||||
{
|
{
|
||||||
len += iter().size() + 1; // include space between option and param
|
// length includes space and between option/param and '<>'
|
||||||
Info<< ' ' << iter().c_str();
|
len += iter().size() + 3;
|
||||||
|
Info<< " <" << iter().c_str() << '>';
|
||||||
}
|
}
|
||||||
|
|
||||||
HashTable<string>::const_iterator usageIter =
|
HashTable<string>::const_iterator usageIter =
|
||||||
@ -827,12 +828,12 @@ void Foam::argList::displayDoc(bool source) const
|
|||||||
List<fileName> docDirs(docDict.lookup("doxyDocDirs"));
|
List<fileName> docDirs(docDict.lookup("doxyDocDirs"));
|
||||||
List<fileName> docExts(docDict.lookup("doxySourceFileExts"));
|
List<fileName> docExts(docDict.lookup("doxySourceFileExts"));
|
||||||
|
|
||||||
// for source code: change foo_8C.html to foo_8C-source.html
|
// for source code: change foo_8C.html to foo_8C_source.html
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
forAll(docExts, extI)
|
forAll(docExts, extI)
|
||||||
{
|
{
|
||||||
docExts[extI].replace(".", "-source.");
|
docExts[extI].replace(".", "_source.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user