STYLE: also mention -help-full on usage errors

This commit is contained in:
Mark Olesen 2022-11-25 12:12:28 +01:00
parent 286c6ce7d8
commit bdb437ab10
3 changed files with 10 additions and 4 deletions

View File

@ -953,8 +953,10 @@ Foam::argList::argList
Info<< nl
<<"Error: option '-" << optName
<< "' requires an argument" << nl << nl
<< "See '" << executable_ << " -help' for usage"
<< nl << nl;
<< "See '" << executable_ << " -help' for usage" << nl
<< " or '" << executable_
<< " -help-full' for extended usage" << nl
<< nl;
Pstream::exit(1); // works for serial and parallel
}
@ -2035,8 +2037,10 @@ bool Foam::argList::check(bool checkArgs, bool checkOpts) const
{
FatalError
<< nl
<< "See '" << executable_ << " -help' for usage"
<< nl << nl;
<< "See '" << executable_ << " -help' for usage" << nl
<< " or '" << executable_
<< " -help-full' for extended usage" << nl
<< nl;
}
}

View File

@ -86,6 +86,7 @@ die()
while [ "$#" -ge 1 ]; do echo " $1"; shift; done
echo
echo "See '${0##*/} -help' for usage"
echo " or '${0##*/} -help-full' for extended usage"
echo
exit 1
}

View File

@ -172,6 +172,7 @@ die()
while [ "$#" -ge 1 ]; do echo " $1"; shift; done
echo
echo "See '${0##*/} -help' for usage"
echo " or '${0##*/} -help-full' for extended usage"
echo
exit 1
}