9 using namespace wibble::commandline;
22 const std::string& longName,
23 const std::string&
usage = std::string(),
24 const std::string& description = std::string())
25 : T(name, shortName, longName,
usage, description) {}
28 return T::parse(a, begin);
30 virtual bool parse(
const std::string& str) {
41 assert_eq(opt.stringValue(), string(
"false"));
46 assert_eq(opt.stringValue(), string(
"true"));
56 assert_eq(opt.stringValue(), string(
"0"));
62 assert_eq(opt.stringValue(), string(
"42"));