Re-enable arguments in KanimajiTool
This commit is contained in:
parent
a8d4210cf2
commit
99ba5b4fd9
1 changed files with 9 additions and 9 deletions
|
@ -4,19 +4,19 @@
|
||||||
|
|
||||||
int main(const int argc, const char *argv[])
|
int main(const int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
//if (argc != 3) {
|
if (argc != 3) {
|
||||||
// std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
|
std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
|
||||||
// "SOURCE - Path to a file from the KanjiVG dataset.\n"
|
"SOURCE - Path to a file from the KanjiVG dataset.\n"
|
||||||
// "DESTINATION - Path to write the animated SVG.\n"
|
"DESTINATION - Path to write the animated SVG.\n"
|
||||||
// );
|
);
|
||||||
// return 1;
|
return 1;
|
||||||
//}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Kanimaji::AnimateFile("084b8.svg", "084b8-out.svg");
|
Kanimaji::AnimateFile(argv[1], argv[2]);
|
||||||
}
|
}
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
std::println("Could not animate the input file");
|
std::println("Could not animate {}: {}", argv[1], argv[2]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue