This commit is contained in:
2020-07-31 20:33:11 +02:00
parent 64090344c7
commit 9e78f9dde0
3 changed files with 174 additions and 46 deletions

View File

@@ -0,0 +1,26 @@
#-----------------------------------------------------------------------------#
import argparse
#-----------------------------------------------------------------------------#
parser = argparse.ArgumentParser(description='List all source dependencies')
parser.add_argument('pathToRepo',type=str,help='path of source repository')
parser.add_argument('mainSource',type=str,help='main source file')
parser.add_argument('depFile',type=str,help='file listing all dependencies')
args = parser.parse_args()
#-----------------------------------------------------------------------------#
def find_dependencies(srcfile, repopath) :
"""
Given a source file and its dependencies in the given repository path
list all further dependencies recursively
"""
if __name__== "__main__":
print("\nCLI arguments:\n" + str(args))
#-----------------------------------------------------------------------------#