mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use argList::addOption, argList::addBoolOption (almost) everywhere
- ensure that the standard options (eg, from timeSelector) also have some usage information
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
foamCalc.C
|
||||
foamCalcApp.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/foamCalc
|
||||
|
||||
@ -26,8 +26,9 @@ Application
|
||||
foamCalc
|
||||
|
||||
Description
|
||||
Generic wrapper for calculating a quantity at each time. Split into four
|
||||
phases:
|
||||
Generic wrapper for calculating a quantity at each time.
|
||||
|
||||
Split into four phases:
|
||||
1. Intialise
|
||||
2. Pre-time calculation loop
|
||||
3. Calculation loop
|
||||
@ -43,8 +44,16 @@ Description
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
Foam::timeSelector::addOptions();
|
||||
Foam::argList::validOptions.insert("noWrite", "");
|
||||
Foam::argList::validOptions.insert("dict", "dictionary name");
|
||||
Foam::argList::addBoolOption
|
||||
(
|
||||
"noWrite",
|
||||
"suppress writing results"
|
||||
);
|
||||
Foam::argList::addOption
|
||||
(
|
||||
"dict",
|
||||
"dictionary name"
|
||||
);
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
Reference in New Issue
Block a user