diff --git a/pull-submodules.py b/pull-submodules.py index f4ee11921..727bef233 100644 --- a/pull-submodules.py +++ b/pull-submodules.py @@ -44,6 +44,7 @@ def print_help(): print ( " --sjtu : It will pull SJTU Git repositories. SSH grant required" ) print ( " --exclude:lib1,lib2 will prevent lib1,lib2 from being pulled" ) print ( " --onlylibs: It will pull only the REST library submodules" ) + print ( " --data: It will pull also data based repositories" ) print ( " " ) if( len(sys.argv ) <= 1 ): @@ -53,7 +54,11 @@ def print_help(): sys.exit(1) exclude_elems = ["userguide", "data"] + for x in range(len(sys.argv) - 1): + if sys.argv[x + 1] == "--data": + exclude_elems = ["userguide"] + if sys.argv[x + 1] == "--lfna": lfna = True print("""\ @@ -162,6 +167,7 @@ def main(): if (not exclude and url.find("github") != -1) or ( url.find("lfna.unizar.es") != -1 and lfna) or ( url.find("gitlab.pandax.sjtu.edu.cn") != -1 and sjtu): + print("Pulling: ", end="") print(fullpath.rstrip(), end='') # init p = subprocess.run(f"cd {root} && git submodule init {submodule}", #