Skip to content

Commit de7a35d

Browse files
Add choices parameter in argument
1 parent ed59a76 commit de7a35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class EvalConfig:
4747

4848
def main():
4949
parser = argparse.ArgumentParser()
50-
parser.add_argument('mode', help="preprocess/train/eval")
50+
parser.add_argument('mode', help="preprocess/train/eval", choices=["preprocess", "train", "eval"])
5151
parser.add_argument('exp_config_file', help="jsonnet file for experiments")
5252
parser.add_argument('--model_config_args', help="optional overrides for model config args")
5353
parser.add_argument('--logdir', help="optional override for logdir")
@@ -106,4 +106,4 @@ def main():
106106

107107

108108
if __name__ == "__main__":
109-
main()
109+
main()

0 commit comments

Comments
 (0)