summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-10-25 14:46:09 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-10-26 16:00:57 (GMT)
commit322193afcdfd3d3ba5a456e5e6f64e3637091736 (patch)
treec2a459e20a042d4082610654df370286c7e6c511 /Source
parent70aef29427b6127fd4c2424ab264de6478117469 (diff)
downloadCMake-322193afcdfd3d3ba5a456e5e6f64e3637091736.zip
CMake-322193afcdfd3d3ba5a456e5e6f64e3637091736.tar.gz
CMake-322193afcdfd3d3ba5a456e5e6f64e3637091736.tar.bz2
cmake --workflow: print usage and exit on unrecognized argument
Issue: #24073
Diffstat (limited to 'Source')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 47e34a6..15e3190 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -949,6 +949,8 @@ int do_workflow(int ac, char const* const* av)
}
if (!(matched && parsed)) {
if (!matched) {
+ presetName.clear();
+ listPresets = false;
std::cerr << "Unknown argument " << arg << std::endl;
}
break;