aboutsummaryrefslogtreecommitdiffstats
path: root/checks/getopt.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-09 08:59:25 +0000
committerlloyd <[email protected]>2006-12-09 08:59:25 +0000
commit989534a10b4fd6eba210a22467c2bb314b174f51 (patch)
tree9d624e58da9a116dbd7ab33c47b2a450ca45d866 /checks/getopt.h
parent545c5de21bcf455e2e1ca97b69b1ddd41a29ad34 (diff)
Add a value_if_set member function to the getopt implementation (returns
the option argument, or an empty string if no argument set)
Diffstat (limited to 'checks/getopt.h')
-rw-r--r--checks/getopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/checks/getopt.h b/checks/getopt.h
index 132bf5482..6d6cfe89f 100644
--- a/checks/getopt.h
+++ b/checks/getopt.h
@@ -11,7 +11,9 @@ class OptionParser
public:
std::vector<std::string> leftovers() const { return leftover; }
bool is_set(const std::string&) const;
+
std::string value(const std::string&) const;
+ std::string value_if_set(const std::string&) const;
void parse(char*[]);
OptionParser(const std::string&);