aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r--lib/Support/CommandLine.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 0584590688..76d9e3690a 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -185,7 +185,8 @@ bool Flag::handleOccurance(const char *ArgName, const string &Arg) {
} 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;
@@ -212,6 +213,14 @@ bool String::handleOccurance(const char *ArgName, const string &Arg) {
}
//===----------------------------------------------------------------------===//
+// 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
//
void EnumBase::processValues(va_list Vals) {