summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-03-18 16:16:46 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-18 16:16:46 -0400
commit1994f950fff32cfcc20823269e008a34bfe6acf0 (patch)
treec34a842458509d52f096eb7d9725dd9075b70a93
parente39766d84a5eef0d9590e6a5980e9cc0c43e1900 (diff)
downloadcmake-1994f950fff32cfcc20823269e008a34bfe6acf0.tar.gz
cmake: List valid values for --trace-format on the command line
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f4b9f1672c..a99d9a633f 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -751,7 +751,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
const auto traceFormat =
StringToTraceFormat(arg.substr(strlen("--trace-format=")));
if (traceFormat == TraceFormat::TRACE_UNDEFINED) {
- cmSystemTools::Error("Invalid format specified for --trace-format");
+ cmSystemTools::Error("Invalid format specified for --trace-format. "
+ "Valid formats are human, json-v1.");
return;
}
this->SetTraceFormat(traceFormat);