Re-enable arguments in KanimajiTool

This commit is contained in:
TennesseeTrash 2025-06-08 14:52:20 +02:00
parent a8d4210cf2
commit 99ba5b4fd9

View file

@ -4,19 +4,19 @@
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 (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;
}
try {
Kanimaji::AnimateFile("084b8.svg", "084b8-out.svg");
Kanimaji::AnimateFile(argv[1], argv[2]);
}
catch (const std::exception& e) {
std::println("Could not animate the input file");
std::println("Could not animate {}: {}", argv[1], argv[2]);
return 1;
}