| 90 | } |
| 91 | |
| 92 | std::filesystem::path getDefaultConfigPath() |
| 93 | { |
| 94 | // First, check if there is a config at current working dir. |
| 95 | if (std::filesystem::exists("config.toml")) |
| 96 | return "config.toml"; |
| 97 | // If not, we choose the one at current binary dir. |
| 98 | else |
| 99 | return binaryDirectory / "config.toml"; |
| 100 | } |
| 101 | |
| 102 | } // namespace CommandLine |
| 103 |