diff --git a/src/Manifest.cc b/src/Manifest.cc index b8fa27ac0..0e0c1a79b 100644 --- a/src/Manifest.cc +++ b/src/Manifest.cc @@ -434,8 +434,8 @@ findManifest(fs::path candidate) noexcept { } Result -Manifest::tryParse(fs::path path, const bool findRecursive) noexcept { - if (findRecursive) { +Manifest::tryParse(fs::path path, const bool findRecursively) noexcept { + if (findRecursively) { path = Try(findManifest(path.parent_path())); } return Manifest::tryFromToml(toml::parse(path), path); diff --git a/src/Manifest.hpp b/src/Manifest.hpp index bb3dc236a..ac0adf97d 100644 --- a/src/Manifest.hpp +++ b/src/Manifest.hpp @@ -134,7 +134,7 @@ struct Manifest { static Result tryParse( fs::path path = fs::current_path() / "cabin.toml", - bool findRecursive = true + bool findRecursively = true ) noexcept; static Result tryFromToml(const toml::value& data, fs::path path = "unknown") noexcept;