summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-03-18 20:16:46 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-18 20:16:46 (GMT)
commit1994f950fff32cfcc20823269e008a34bfe6acf0 (patch)
treec34a842458509d52f096eb7d9725dd9075b70a93 /Source
parente39766d84a5eef0d9590e6a5980e9cc0c43e1900 (diff)
downloadCMake-1994f950fff32cfcc20823269e008a34bfe6acf0.zip
CMake-1994f950fff32cfcc20823269e008a34bfe6acf0.tar.gz
CMake-1994f950fff32cfcc20823269e008a34bfe6acf0.tar.bz2
cmake: List valid values for --trace-format on the command line
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f4b9f16..a99d9a6 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);