# Refactoring CTest

**URL:** https://discourse.cmake.org/t/refactoring-ctest/12661
**Category:** Development
**Created:** [September 30, 2024, 8:50pm UTC](https://discourse.cmake.org/t/refactoring-ctest/12661 "2024-09-30T20:50:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [October 2, 2024, 5:31am UTC](https://discourse.cmake.org/t/refactoring-ctest/12661/3 "2024-10-02T05:31:44Z")

</div>

The [–build-config](https://cmake.org/cmake/help/v3.30/manual/ctest.1.html#cmdoption-ctest-C) argument should be changed to `--config` like it is used with cmake.

The `--config` and `-C` should be common options with same sematic.

P.S: It is also inconsistent in [cpack](https://cmake.org/cmake/help/v3.30/manual/cpack.1.html#cmdoption-cpack-C)?

see too

> [@ctest --preset=ninja-multi --config Release does not work?](https://discourse.cmake.org/t/ctest-preset-ninja-multi-config-release-does-not-work/5378/4):
>
> That sounds like a good request to me. @robert.maynard has the CTest command line had a refresh/tightening up that CMake did?

---

_[View the full topic](https://discourse.cmake.org/t/refactoring-ctest/12661)._
