瀏覽代碼

cmake: List valid values for --trace-format on the command line

Kyle Edwards 5 年之前
父節點
當前提交
1994f950ff
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmake.cxx

+ 2 - 1
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);