]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/getopt.h
Restore the check that list options must take an argument
[libs/core.git] / source / core / getopt.h
index 911934ac08adb7399bbd914b6778a8df8eb99f03..70841cbf6b8dc50da4800bfae42ebc78e6d7e122 100644 (file)
@@ -88,6 +88,7 @@ private:
 
                virtual Store *clone() const = 0;
 
+               virtual bool is_list() const = 0;
                virtual void store() = 0;
                virtual void store(const std::string &) = 0;
        };
@@ -133,6 +134,8 @@ private:
                virtual SimpleStore *clone() const
                { return new SimpleStore(data); }
 
+               virtual bool is_list() const { return false; }
+
                virtual void store() { }
 
                virtual void store(const std::string &a)
@@ -151,6 +154,8 @@ private:
                virtual ListStore *clone() const
                { return new ListStore(data); }
 
+               virtual bool is_list() const { return true; }
+
                virtual void store() { }
 
                virtual void store(const std::string &a)