mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-27 13:14: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(
|
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…
Reference in New Issue
Block a user