Compare commits

...

2 commits

Author SHA1 Message Date
99ba5b4fd9 Re-enable arguments in KanimajiTool 2025-06-08 14:52:20 +02:00
a8d4210cf2 Clean up includes 2025-06-08 14:50:26 +02:00
5 changed files with 13 additions and 11 deletions

View file

@ -1,7 +1,9 @@
#ifndef KANIMAJI_ERROR_HPP
#define KANIMAJI_ERROR_HPP
#include <cstddef>
#include <stdexcept>
#include <string_view>
namespace Kanimaji
{

View file

@ -1,3 +1,4 @@
#include "Kanimaji/Error.hpp"
#include "Kanimaji/Kanimaji.hpp"
#include "Kanimaji/Settings.hpp"
#include "SVG.hpp"

View file

@ -1,3 +1,4 @@
#include "Kanimaji/Error.hpp"
#include "SVG.hpp"
#include <algorithm>

View file

@ -1,8 +1,6 @@
#ifndef KANIMAJI_SVG_HPP
#define KANIMAJI_SVG_HPP
#include "Kanimaji/Error.hpp"
#include <memory>
#include <string_view>
#include <vector>

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;
}