28 arser.add_argument(
"circle").help(
"Source circle file path to convert");
29 arser.add_argument(
"recipe").help(
"Target recipe file path");
33 arser.parse(argc, argv);
35 catch (
const std::runtime_error &err)
37 std::cout << err.what() << std::endl;
42 std::string circle_path =
arser.get<std::string>(
"circle");
45 std::vector<char> modelData = fileLoader.
load();
46 const circle::Model *circlemodel = circle::GetModel(modelData.data());
47 if (circlemodel ==
nullptr)
49 std::cerr <<
"ERROR: Failed to load circle '" << circle_path <<
"'" << std::endl;
55 if (recipe.get() ==
nullptr)
57 std::cerr <<
"ERROR: Failed to generate recipe" << std::endl;
61 std::string recipe_path =
arser.get<std::string>(
"recipe");
66 std::cerr <<
"ERROR: Failed to write to recipe '" << recipe_path <<
"'" << std::endl;