Commit 919fa3a5 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: ensure help for -dict matches its intended usage

parent 146bfe2b
......@@ -82,7 +82,8 @@ int main(int argc, char *argv[])
"Collapse faces that are in the supplied face set"
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative collapseDict");
#include "addOverwriteOption.H"
argList::noFunctionObjects(); // Never use function objects
......
......@@ -342,7 +342,7 @@ int main(int argc, char *argv[])
"For example, moving points, splitting/collapsing edges etc."
);
#include "addOverwriteOption.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative modifyMeshDict");
argList::noFunctionObjects(); // Never use function objects
......
......@@ -1469,7 +1469,12 @@ int main(int argc, char *argv[])
#include "addRegionOption.H"
#include "addOverwriteOption.H"
#include "addDictOption.H"
argList::addOption
(
"dict", "file", "Use alternative extrudeToRegionMeshDict"
);
#include "setRootCase.H"
#include "createTime.H"
#include "createNamedMesh.H"
......
......@@ -684,6 +684,7 @@ int main(int argc, char *argv[])
#include "addRegionOption.H"
#include "addOverwriteOption.H"
#include "addProfilingOption.H"
argList::addBoolOption
(
"checkGeometry",
......@@ -707,8 +708,7 @@ int main(int argc, char *argv[])
"file",
"Name of the file to save the simplified surface to"
);
#include "addProfilingOption.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative snappyHexMeshDict");
argList::noFunctionObjects(); // Never use function objects
......
......@@ -441,9 +441,8 @@ int main(int argc, char *argv[])
"Does not duplicate points."
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative createBafflesDict");
#include "addOverwriteOption.H"
#include "addDictOption.H"
#include "addRegionOption.H"
argList::noFunctionObjects(); // Never use function objects
......
......@@ -518,7 +518,7 @@ int main(int argc, char *argv[])
#include "addOverwriteOption.H"
#include "addRegionOption.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative createPatchDict");
argList::addBoolOption
(
"writeObj",
......
......@@ -49,9 +49,7 @@ int main(int argc, char *argv[])
"Mirrors a mesh around a given plane."
);
#include "addDictOption.H"
// Adjust the help text
argList::addUsage("dict", "Specify alternative mirrorMeshDict");
argList::addOption("dict", "file", "Use alternative mirrorMeshDict");
argList::setAdvanced("decomposeParDict");
#include "addOverwriteOption.H"
......
......@@ -162,7 +162,8 @@ int main(int argc, char *argv[])
#include "addOverwriteOption.H"
#include "addRegionOption.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative refineMeshDict");
argList::addBoolOption
(
......
......@@ -617,7 +617,8 @@ int main(int argc, char *argv[])
#include "addRegionOption.H"
#include "addOverwriteOption.H"
#include "addTimeOptions.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative renumberMeshDict");
argList::addBoolOption
(
......
......@@ -115,7 +115,8 @@ int main(int argc, char *argv[])
#include "addOverwriteOption.H"
#include "addRegionOption.H"
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative stitchMeshDict");
argList::addBoolOption
(
......
......@@ -207,7 +207,9 @@ int main(int argc, char *argv[])
);
timeSelector::addOptions(true, false); // constant(true), zero(false)
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative topoSetDict");
#include "addRegionOption.H"
argList::addBoolOption
(
......
......@@ -109,7 +109,8 @@ int main(int argc, char *argv[])
argList::noCheckProcessorDirectories();
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative noiseDict");
#include "setRootCase.H"
#include "createTime.H"
......
......@@ -396,7 +396,8 @@ int main(int argc, char *argv[])
" (such as the patch type for fields and polyMesh/boundary files)."
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative changeDictionaryDict");
argList::addOption
(
"subDict",
......
......@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
(
"commsDir",
"dir",
"Specify alternate communications directory (default is 'comms')"
"Specify communications directory (default is 'comms')"
);
#include "setRootCase.H"
#include "createTime.H"
......
......@@ -59,8 +59,9 @@ int main(int argc, char *argv[])
" algorithm. Writes a map of fine to coarse grid."
);
argList::addOption("dict", "file", "Use alternative viewFactorsDict");
#include "addRegionOption.H"
#include "addDictOption.H"
#include "setRootCase.H"
#include "createTime.H"
#include "createNamedMesh.H"
......
......@@ -401,7 +401,8 @@ int main(int argc, char *argv[])
"Set values on a selected set of cells/patch-faces via a dictionary"
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative setFieldsDict");
#include "addRegionOption.H"
#include "setRootCase.H"
#include "createTime.H"
......
......@@ -274,8 +274,7 @@ int main(int argc, char *argv[])
);
argList::noParallel();
argList::addArgument("hookTolerance", "The point merge tolerance");
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative surfaceHookUpDict");
#include "setRootCase.H"
#include "createTime.H"
......
......@@ -100,7 +100,8 @@ int main(int argc, char *argv[])
"factor",
"Geometry scaling factor on output"
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative coordinateSystems");
argList::addOption
(
"from",
......
......@@ -107,7 +107,8 @@ int main(int argc, char *argv[])
"factor",
"Geometry scaling factor on output - default is 1"
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative coordinateSystems");
argList::addOption
(
"from",
......
......@@ -49,7 +49,7 @@ Usage
Specify a scaling factor when writing files.
- \par -dict \<dictionary\>
Specify an alternative dictionary for constant/coordinateSystems.
Use alternative dictionary for constant/coordinateSystems.
- \par -from \<coordinateSystem\>
Specify a coordinate system when reading files.
......@@ -107,7 +107,8 @@ int main(int argc, char *argv[])
"factor",
"Geometry scaling factor on output - default is 1"
);
#include "addDictOption.H"
argList::addOption("dict", "file", "Use alternative coordinateSystems");
argList::addOption
(
"from",
......
Supports Markdown
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