Add Debian 12 C++23 toolchain, plumb args

This commit is contained in:
TennesseeTrash 2025-05-25 17:19:34 +02:00
parent aea51d9e77
commit e1af823502
4 changed files with 41 additions and 2 deletions

View file

@ -1,6 +1,21 @@
#include <Kanimaji/Kanimaji.hpp>
int main()
{
#include <print>
int main(const int argc, const char *argv[])
{
if (argc != 3) {
std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
"SOURCE - Path to a file from the KanjiVG dataset.\n"
"DESTINATION - Path to write the animated SVG.\n"
);
return 1;
}
if (!Kanimaji::Animate(argv[1], argv[2])) {
std::println("Could not animate the specified file.");
return 1;
}
return 0;
}