Skip to content

Commit

Permalink
Fix missing --ros-args too
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 17, 2024
1 parent af6d57f commit 7804018
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mola_launcher/apps/mola-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,8 @@ int main(int argc, char** argv)
for (int i = 0; i < argc; i++)
{
const auto sArg = std::string(argv[i]);
if (sArg == "--ros-args" && !rosArgs)
{
rosArgs.emplace();
continue;
}
if (sArg == "--ros-args" && !rosArgs) rosArgs.emplace();

if (rosArgs)
rosArgs->push_back(sArg);
else
Expand Down

0 comments on commit 7804018

Please sign in to comment.