| 385 | } |
| 386 | |
| 387 | fs::path ArgsManager::GetPathArg(std::string pathlike_arg) const |
| 388 | { |
| 389 | auto result = fs::PathFromString(GetArg(pathlike_arg, "")).lexically_normal(); |
| 390 | // Remove trailing slash, if present. |
| 391 | return result.has_filename() ? result : result.parent_path(); |
| 392 | } |
| 393 | |
| 394 | const fs::path& ArgsManager::GetBlocksDirPath() const |
| 395 | { |