mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-26 03:44:19 +00:00
Mark required arguments in scripts as required
This commit is contained in:
parent
4518ca1c83
commit
ca1803ab8a
@ -20,7 +20,7 @@ parser.add_argument(
|
|||||||
required=True
|
required=True
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
print(args)
|
|
||||||
|
|
||||||
for input_file in args.input_file:
|
for input_file in args.input_file:
|
||||||
input_files = []
|
input_files = []
|
||||||
|
3
hocr2tei
3
hocr2tei
@ -12,7 +12,8 @@ import re
|
|||||||
parser = ArgumentParser(description='Convert hOCR to TEI XML.')
|
parser = ArgumentParser(description='Convert hOCR to TEI XML.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-i', '--input-file',
|
'-i', '--input-file',
|
||||||
help='Input file'
|
help='Input file',
|
||||||
|
required=True
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-o', '--output-file',
|
'-o', '--output-file',
|
||||||
|
Loading…
Reference in New Issue
Block a user