Better support for spaces

This fixes support for options such as --file="folder with spaces/file".
This commit is contained in:
Baptiste Wicht 2015-02-13 10:55:26 +01:00
parent feeffe1997
commit 7611711651

View File

@ -410,6 +410,13 @@ namespace cxxopts
//so that we can write --long=yes explicitly
value = true;
}
inline
void
parse_value(const std::string& text, std::string& value)
{
value = text;
}
template <typename T>
struct value_has_arg