Skip to content

Commit

Permalink
Change the default max depth of inheritance & update help. (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili authored Oct 12, 2022
1 parent 09c618d commit 89a5fc5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/test/miniwdl_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("files", nargs="+", help="The WDL files to be checked.")
parser.add_argument("--imports-dir", required=True, help="The directory to search for WDLs to be imported.")
parser.add_argument("--max-import-depth", default=2, help="Maximum depth of imports to check for validating WDLs.")
parser.add_argument(
"--max-import-depth",
default=15,
help="Set the maximum allowed depth of imports in the WDLs. "
"For a given WDL, miniwdl first asserts the imports, and "
"it will error-out if it reaches the given max depth "
"and the WDL has imports. For instance, with max depth set "
"to 2, it will error-out validating "
"Foo.wdl -> (import Bar.wdl -> (import Baz.wdl)).")
args = parser.parse_args()

wdl_filenames = args.files
Expand Down

0 comments on commit 89a5fc5

Please sign in to comment.