aboutsummaryrefslogtreecommitdiff
path: root/src/headless/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless/main.cpp')
-rw-r--r--src/headless/main.cpp8
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;