mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 06:48:35 -05:00
Change arrangement of optional and help text arguments
This commit is contained in:
@@ -56,8 +56,8 @@ struct Verifier {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct DocumentationEntry {
|
struct DocumentationEntry {
|
||||||
DocumentationEntry(std::string key, Verifier* t, Optional optional = Optional::No,
|
DocumentationEntry(std::string key, Verifier* t, std::string doc = "",
|
||||||
std::string doc = "");
|
Optional optional = Optional::No);
|
||||||
|
|
||||||
std::string key;
|
std::string key;
|
||||||
std::shared_ptr<Verifier> tester;
|
std::shared_ptr<Verifier> tester;
|
||||||
|
|||||||
@@ -93,12 +93,13 @@ bool Verifier::test(const ghoul::Dictionary& dict, const std::string& key) const
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
DocumentationEntry::DocumentationEntry(std::string key, Verifier* t,
|
DocumentationEntry::DocumentationEntry(std::string key, Verifier* t, std::string doc,
|
||||||
Optional optional, std::string doc)
|
Optional optional)
|
||||||
: key(std::move(key))
|
: key(std::move(key))
|
||||||
, tester(std::move(t))
|
, tester(std::move(t))
|
||||||
|
, documentation(std::move(doc))
|
||||||
, optional(optional)
|
, optional(optional)
|
||||||
, documentation(std::move(doc)) {}
|
{}
|
||||||
|
|
||||||
TestResult testSpecification(const Documentation& d, const ghoul::Dictionary& dictionary){
|
TestResult testSpecification(const Documentation& d, const ghoul::Dictionary& dictionary){
|
||||||
TestResult result;
|
TestResult result;
|
||||||
|
|||||||
Reference in New Issue
Block a user