From 1994f950fff32cfcc20823269e008a34bfe6acf0 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Wed, 18 Mar 2020 16:16:46 -0400 Subject: cmake: List valid values for --trace-format on the command line --- Source/cmake.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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& 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); -- cgit v0.12