setNoOverwrite.H
Go to the documentation of this file.
1 const bool overwrite = !args.optionFound("noOverwrite");
2 
3 if (args.optionFound("overwrite"))
4 {
6  << "Deprecated option 'overwrite' specified, "
7  "this is now the default behaviour"
8  << Foam::nl << Foam::endl;
9 }
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition: argListI.H:114
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:258
messageStream Info
static const char nl
Definition: Ostream.H:267
const bool overwrite
Definition: setNoOverwrite.H:1
Foam::argList args(argc, argv)