diff options
author | hop311 <hop3114@gmail.com> | 2023-10-28 11:39:08 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-10-29 20:42:47 +0100 |
commit | 164264b047921dbe1567d2af183e1cffb200a8cb (patch) | |
tree | 21c3c81f65ac3259db4808ebe9fd32a94ca993af /src/headless | |
parent | d8ec90f07342876e9331819bd3cc372050f78248 (diff) |
Astyle formatting (with manual cleanup)
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp index 6cb6661..04bfc7b 100644 --- a/src/headless/main.cpp +++ b/src/headless/main.cpp @@ -82,15 +82,17 @@ int main(int argc, char const* argv[]) { /* Reads the next argument and converts it to a path via path_transform. If reading or converting fails, an error * message and the help text are displayed, along with returning false to signify the program should exit. */ - const auto _read = [&root, &argn, argc, argv, program_name](std::string_view command, std::string_view path_use, auto path_transform) -> bool { - if (root.empty()) { + const auto _read = [&root, &argn, argc, argv, program_name]( + std::string_view command, std::string_view path_use, auto path_transform) -> bool { + if (root.empty()) { if (++argn < argc) { char const* path = argv[argn]; root = path_transform(path); if (!root.empty()) { return true; } else { - std::cerr << "Empty path after giving \"" << path << "\" to " << path_use << " command line argument \"" << command << "\"." << std::endl; + std::cerr << "Empty path after giving \"" << path << "\" to " << path_use + << " command line argument \"" << command << "\"." << std::endl; } } else { std::cerr << "Missing path after " << path_use << " command line argument \"" << command << "\"." << std::endl; |