Skip to content

Commit e41f496

Browse files
committed
Added "short" arguments
1 parent 641107f commit e41f496

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

dafni/main_dafni.py

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,44 +29,36 @@ def get_args(test_args=None) -> argparse.Namespace:
2929
- argparse.Namespace - A Namsespace consisting of the arguments to this script
3030
"""
3131
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="+")
3933
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)"
4135
)
42-
4336
parser.add_argument(
37+
"-v",
4438
"--variables_path",
4539
required=True,
4640
help="Input configuration file path " "containing the predefined variables (.json)",
4741
)
48-
4942
parser.add_argument(
43+
"-D",
5044
"--dag_path",
5145
required=True,
5246
help="Input configuration file path containing a valid DAG (.dot). "
5347
"Note: this must be supplied if the --tests argument isn't provided.",
5448
)
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+
)
5852
parser.add_argument(
5953
"-f", default=False, help="(Optional) Failure flag to step the framework from running if a test has failed."
6054
)
61-
55+
parser.add_argument("-o", "--output_path", required=False, help="Path to the output directory.")
6256
parser.add_argument(
6357
"-w",
6458
default=False,
6559
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",
6861
)
69-
7062
args = parser.parse_args(test_args)
7163

7264
# Convert these to Path objects for main()

0 commit comments

Comments
 (0)