Skip to content
Snippets Groups Projects
Commit f654b7fa authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BACKPORT: accept argList::get() methods as per 1912

parent 1b017938
Branches
Tags
No related merge requests found
......@@ -427,6 +427,21 @@ public:
inline bool readListIfPresent(const word& optName, List<T>& list) const;
//- Alternative name for option opt(const word& optName)
template<class T=string>
T get(const word& optName) const
{
return this->opt<T>(optName);
}
//- Alternative name for option opt(const word& optName, ...)
template<class T>
T get(const word& optName, const T& deflt) const
{
return this->opt<T>(optName, deflt);
}
// Edit
//- Append a (mandatory) argument to validArgs
......
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