@@ -29,44 +29,36 @@ def get_args(test_args=None) -> argparse.Namespace:
29
29
- argparse.Namespace - A Namsespace consisting of the arguments to this script
30
30
"""
31
31
parser = argparse .ArgumentParser (description = "A script for running the CTF on DAFNI." )
32
-
33
- parser .add_argument ("--data_path" , required = True , help = "Path to the input runtime data (.csv)" , nargs = "+" )
34
-
35
- parser .add_argument (
36
- "--tests_path" , required = True , help = "Input configuration file path " "containing the causal tests (.json)"
37
- )
38
-
32
+ parser .add_argument ("-d" , "--data_path" , required = True , help = "Path to the input runtime data (.csv)" , nargs = "+" )
39
33
parser .add_argument (
40
- "-i " , "--ignore_cycles " , action = "store_true" , help = "Whether to ignore cycles in the DAG." , default = False
34
+ "-t " , "--tests_path " , required = True , help = "Input configuration file path " "containing the causal tests (.json)"
41
35
)
42
-
43
36
parser .add_argument (
37
+ "-v" ,
44
38
"--variables_path" ,
45
39
required = True ,
46
40
help = "Input configuration file path " "containing the predefined variables (.json)" ,
47
41
)
48
-
49
42
parser .add_argument (
43
+ "-D" ,
50
44
"--dag_path" ,
51
45
required = True ,
52
46
help = "Input configuration file path containing a valid DAG (.dot). "
53
47
"Note: this must be supplied if the --tests argument isn't provided." ,
54
48
)
55
-
56
- parser . add_argument ( "--output_path " , required = False , help = "Path to the output directory." )
57
-
49
+ parser . add_argument (
50
+ "-i" , "--ignore_cycles " , action = "store_true" , help = "Whether to ignore cycles in the DAG." , default = False
51
+ )
58
52
parser .add_argument (
59
53
"-f" , default = False , help = "(Optional) Failure flag to step the framework from running if a test has failed."
60
54
)
61
-
55
+ parser . add_argument ( "-o" , "--output_path" , required = False , help = "Path to the output directory." )
62
56
parser .add_argument (
63
57
"-w" ,
64
58
default = False ,
65
59
help = "(Optional) Specify to overwrite any existing output files. "
66
- "This can lead to the loss of existing outputs if not "
67
- "careful" ,
60
+ "This can lead to the loss of existing outputs if not careful" ,
68
61
)
69
-
70
62
args = parser .parse_args (test_args )
71
63
72
64
# Convert these to Path objects for main()
0 commit comments