Make arguments optional

This commit is contained in:
Patrick Jentsch 2019-06-03 14:18:23 +02:00
parent c5ce5b1c87
commit f57c77ec64

View File

@ -15,12 +15,12 @@ parser = argparse.ArgumentParser(add_help=False)
parser.add_argument(
'-i',
dest='input_dir',
required=True
required=False
)
parser.add_argument(
'-o',
dest='output_dir',
required=True
required=False
)
args, remaining_args = parser.parse_known_args()