} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
Value = false;
} else {
- return error(": '" + Arg + "' is invalid value for boolean argument! Try 0 or 1");
+ return error(": '" + Arg +
+ "' is invalid value for boolean argument! Try 0 or 1");
}
return false;
return false;
}
+//===----------------------------------------------------------------------===//
+// StringList valued command line option implementation
+//
+bool StringList::handleOccurance(const char *ArgName, const string &Arg) {
+ Values.push_back(Arg);
+ return false;
+}
+
//===----------------------------------------------------------------------===//
// Enum valued command line option implementation
//
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
Value = false;
} else {
- return error(": '" + Arg + "' is invalid value for boolean argument! Try 0 or 1");
+ return error(": '" + Arg +
+ "' is invalid value for boolean argument! Try 0 or 1");
}
return false;
return false;
}
+//===----------------------------------------------------------------------===//
+// StringList valued command line option implementation
+//
+bool StringList::handleOccurance(const char *ArgName, const string &Arg) {
+ Values.push_back(Arg);
+ return false;
+}
+
//===----------------------------------------------------------------------===//
// Enum valued command line option implementation
//