mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2025-01-13 19:30:33 +00:00
Make arguments optional
This commit is contained in:
parent
b5ba154f86
commit
f280b16b1b
@ -15,12 +15,12 @@ parser = argparse.ArgumentParser(add_help=False)
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-i',
|
'-i',
|
||||||
dest='input_dir',
|
dest='input_dir',
|
||||||
required=True
|
required=False
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-o',
|
'-o',
|
||||||
dest='output_dir',
|
dest='output_dir',
|
||||||
required=True
|
required=False
|
||||||
)
|
)
|
||||||
args, remaining_args = parser.parse_known_args()
|
args, remaining_args = parser.parse_known_args()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user