diff options
author | Brad King <brad.king@kitware.com> | 2019-01-16 19:32:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-17 17:01:07 (GMT) |
commit | cae9d2a61afea3948c8dfaf1f7dbc39ebaa71055 (patch) | |
tree | e3d073b40e2f1bb5a99976b0e7859b29fe00ddb2 /Source/cmCTest.cxx | |
parent | 7370b02c36b45bcd92b6c5bb7cc65ecff75b9b2b (diff) | |
download | CMake-cae9d2a61afea3948c8dfaf1f7dbc39ebaa71055.zip CMake-cae9d2a61afea3948c8dfaf1f7dbc39ebaa71055.tar.gz CMake-cae9d2a61afea3948c8dfaf1f7dbc39ebaa71055.tar.bz2 |
CTest: Teach --show-only= to reject unknown values
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 65c0d91..ccd74c0 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1944,6 +1944,9 @@ bool cmCTest::HandleCommandLineArguments(size_t& i, this->Quiet = true; this->OutputAsJson = true; this->OutputAsJsonVersion = 1; + } else if (format != "human") { + errormsg = "'--show-only=' given unknown value '" + format + "'"; + return false; } } |