repo-cloner/repo_cloner/process_repository_dir.py

22 lines
503 B
Python
Raw Normal View History

#!/usr/bin/env python3
import argparse
from repo_cloner.lib.repo_dir_structure import RepoDirStructure
def main():
# parse input arguments
parser = argparse.ArgumentParser(description = "repo-cloner entering script")
parser.add_argument('--base-dir', help = 'path to directory containing whole cloner structure', required = True,
default = None, type = str)
args = parser.parse_args()
dirs = RepoDirStructure(args.base_dir)
print(dirs)
dirs.exists
if __name__ == "__main__":
main()