From ca1803ab8aa4b12a276b71ccc50cb0f174521e18 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Thu, 3 Feb 2022 10:40:50 +0100
Subject: [PATCH] Mark required arguments in scripts as required
---
hocr-combine | 2 +-
hocr2tei | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hocr-combine b/hocr-combine
index d4b606c..584e64d 100755
--- a/hocr-combine
+++ b/hocr-combine
@@ -20,7 +20,7 @@ parser.add_argument(
required=True
)
args = parser.parse_args()
-print(args)
+
for input_file in args.input_file:
input_files = []
diff --git a/hocr2tei b/hocr2tei
index 0350efb..629915a 100755
--- a/hocr2tei
+++ b/hocr2tei
@@ -12,7 +12,8 @@ import re
parser = ArgumentParser(description='Convert hOCR to TEI XML.')
parser.add_argument(
'-i', '--input-file',
- help='Input file'
+ help='Input file',
+ required=True
)
parser.add_argument(
'-o', '--output-file',