From 3e2e0d062b3e296d3e25897114c8646c9f664f52 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Jan 2018 11:14:57 +0100 Subject: util/OptionParser: support option values --- src/util/OptionParser.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util/OptionParser.hxx') diff --git a/src/util/OptionParser.hxx b/src/util/OptionParser.hxx index a7176a4c3..a6a95a325 100644 --- a/src/util/OptionParser.hxx +++ b/src/util/OptionParser.hxx @@ -47,6 +47,7 @@ public: struct Result { int index; + const char *value; constexpr operator bool() noexcept { return index >= 0; @@ -70,7 +71,8 @@ public: } private: - Result IdentifyOption(const char *s) const; + const char *CheckShiftValue(const char *s, const OptionDef &option); + Result IdentifyOption(const char *s); }; #endif -- cgit v1.2.3