Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/Runner/Options.hpp
diff options
context:
space:
mode:
authorLeitwolf2026-10-30 00:07:08 +0300
committerGitHub2026-10-30 00:07:08 +0300
commit5d713685c54bb491ad1bbb0fd8f80318bfaf7103 (patch)
treefed3945312bd75d050c9c3163584b1ae6fcb1b93 /src/Progmasoft/Runner/Options.hpp
parentdb9f14bb7f38425e6005ae2212d83f01f9f2f8be (diff)
parent471756b77331fa1ab77bc94e6aae228baef903e0 (diff)
downloadcatch3-ci/narrow-macos.tar.gz
Merge branch 'devel' into ci/narrow-macosci/narrow-macos
Diffstat (limited to 'src/Progmasoft/Runner/Options.hpp')
-rw-r--r--src/Progmasoft/Runner/Options.hpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/Progmasoft/Runner/Options.hpp b/src/Progmasoft/Runner/Options.hpp
index 2820c1c0..f7bf0445 100644
--- a/src/Progmasoft/Runner/Options.hpp
+++ b/src/Progmasoft/Runner/Options.hpp
@@ -6,8 +6,10 @@
#include <chrono>
#include <cstdint>
+#include <cstddef>
#include <optional>
#include <string>
+#include <string_view>
#include <vector>
namespace Progmasoft::Catch3::Runner
@@ -165,11 +167,24 @@ namespace Progmasoft::Catch3::Runner
/// Created when the run starts and removed when it ends normally, so
/// a file left behind shows that the run ended early.
std::string exitGuardPath;
+
+ // Configuration.
+ /// The `catch3.json` named by --config; after ParseCommandLine, the
+ /// one that was read, if any.
+ std::string configPath;
+ bool noConfig = false;
};
- /// Reads a command line. `arguments` does not include the program.
+ /// Reads a command line on top of `options`. `arguments` does not include
+ /// the program.
[[nodiscard]] Expected<Options>
- ParseOptions(const std::vector<std::string> &arguments);
+ ParseOptions(const std::vector<std::string> &arguments,
+ Options options = {});
+
+ /// How many single-character edits turn `left` into `right`, for
+ /// suggesting the name that was meant.
+ [[nodiscard]] std::size_t
+ EditDistance(std::string_view left, std::string_view right);
/// The help text, for `--help`.
[[nodiscard]] std::string