ctest: Restore handling of -U and --union with no value

Refactoring in commit c0c4d48ba2 (cmCTest: Use cmCommandLineArgument
command-line parsing infrastructure, 2024-10-12, v4.0.0-rc1~646^2)
accidentally made `-U` and `--union` require an argument, but the
documentation states that no argument is required.

Closes: #28243
This commit is contained in:
Ralf Habacker authored and Brad King committed 2026-11-03 10:42:40 -05:00
1 parent c52f37782d
commit b150e8757c
1 file changed
+2 -2
+2 -2
View File
@@ -2445,8 +2445,8 @@ int cmCTest::Run(std::vector<std::string> const& args)
CommandArgument{ "-I", CommandArgument::Values::One, dashI },
CommandArgument{ "--tests-information", CommandArgument::Values::One,
dashI },
CommandArgument{ "-U", CommandArgument::Values::One, dashU },
CommandArgument{ "--union", CommandArgument::Values::One, dashU },
CommandArgument{ "-U", CommandArgument::Values::Zero, dashU },
CommandArgument{ "--union", CommandArgument::Values::Zero, dashU },
CommandArgument{ "-R", CommandArgument::Values::One, dashR },
CommandArgument{ "--tests-regex", CommandArgument::Values::One, dashR },
CommandArgument{ "-E", CommandArgument::Values::One, dashE },