From 3f659348359c10cd804cfde1974b5be1672d6ad6 Mon Sep 17 00:00:00 2001 From: cneud <952378+cneud@users.noreply.github.com> Date: Sat, 24 Feb 2024 00:14:18 +0100 Subject: [PATCH] partial revert of https://github.com/qurator-spk/eynollah/commit/c606391c312eceab9aa3ebff071bdf12a30b45cc --- eynollah/eynollah/cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eynollah/eynollah/cli.py b/eynollah/eynollah/cli.py index 94bf211..fe7f878 100644 --- a/eynollah/eynollah/cli.py +++ b/eynollah/eynollah/cli.py @@ -10,6 +10,7 @@ from eynollah.eynollah.eynollah import Eynollah "-i", help="image filename", type=click.Path(exists=True, dir_okay=False), + required=True, ) @click.option( "--out", @@ -198,9 +199,9 @@ def main( light_version=light_version, ignore_page_extraction=ignore_page_extraction, ) - eynollah.run() - # pcgts = eynollah.run() - # eynollah.writer.write_pagexml(pcgts) + # eynollah.run() + pcgts = eynollah.run() + eynollah.writer.write_pagexml(pcgts) if __name__ == "__main__":