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