mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-26 20:54:17 +00:00
Make arguments optional
This commit is contained in:
parent
c5ce5b1c87
commit
f57c77ec64
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user