Skip to content

Commit

Permalink
Fix: Empty space in Server CLI arguments for clipp parser
Browse files Browse the repository at this point in the history
  • Loading branch information
DarvinHarutyunyan committed Aug 8, 2023
1 parent 463b351 commit 055227f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ int main(int argc, char** argv) {
auto srv_id = fork();
if (srv_id == 0) {
usleep(1); // TODO Any statement is required to be run for successful `execl` run...
std::string cli_args = fmt::format("--quiet --config {}", path() ? path() : "");
std::string cli_args = "--quiet" + (path() ? fmt::format(" --config {}", path()) : "");
execl(srv_path.c_str(), srv_path.c_str(), cli_args.c_str(), (char*)(NULL));
exit(0);
}
Expand Down

0 comments on commit 055227f

Please sign in to comment.