Added convert-atx command to convert ATX files to PNG files.

This commit is contained in:
zapan 2024-04-11 12:26:07 +02:00
parent bac244eb2f
commit f5de8cca2b
3 changed files with 16 additions and 0 deletions

13
DgfTxmConvert/Program.cs Normal file → Executable file
View file

@ -114,6 +114,19 @@ namespace DgfTxmConvert
});
});
app.Command("convert-atx", config =>
{
config.FullName = "Converts ATX to PNG";
config.Description = "Convert ATX files to PNG files";
var inPath = config.Argument("inPath", "path").IsRequired();
var filter = config.Argument("filter", "filter").IsRequired();
config.HelpOption();
config.OnExecute(() =>
{
BulkConvertAtx(inPath.Value, filter.Value, false);
});
});
app.Command("dump-font", config =>
{
config.FullName = "Dump kanji font";