You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime a command or subcommand is trying to find the right run function it runs this same code:
if (argc >= 3) {
std::string command{argv[2]};
auto it = commands.find(command);
if (it != commands.end())
return commands[command](argc, argv, out, err);
}
This could be avoided by creating a function responsible for that.
This is now happening at cptools.cpp only, but polygon pull/push subcommand will have the same code.
The text was updated successfully, but these errors were encountered:
Reduce code duplication in action find
Description:
Everytime a command or subcommand is trying to find the right
run
function it runs this same code:This could be avoided by creating a function responsible for that.
This is now happening at
cptools.cpp
only, butpolygon pull/push
subcommand will have the same code.The text was updated successfully, but these errors were encountered: