Mark required arguments in scripts as required

This commit is contained in:
Patrick Jentsch 2022-02-03 10:40:50 +01:00
parent 4518ca1c83
commit ca1803ab8a
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ parser.add_argument(
required=True
)
args = parser.parse_args()
print(args)
for input_file in args.input_file:
input_files = []

View File

@ -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',