summaryrefslogtreecommitdiff
path: root/src/core/common/Argument.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Argument.hpp')
-rw-r--r--src/core/common/Argument.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/common/Argument.hpp b/src/core/common/Argument.hpp
index 78f7ec1..dd652de 100644
--- a/src/core/common/Argument.hpp
+++ b/src/core/common/Argument.hpp
@@ -402,12 +402,23 @@ private:
*/
std::unordered_map<std::string, size_t> names;
+ /**
+ * Set to true if arguments were explicitly given in the constructor,
+ * false otherwise.
+ */
+ bool valid;
+
public:
/**
+ * Static Arguments instance with no explicit arguments set.
+ */
+ static const Arguments None;
+
+ /**
* Default constructor. Provides no arguments.
*/
- Arguments() {};
+ Arguments() : valid(false) {};
/**
* Constructor of the Arguments class from a list of Argument instances.