MCPcopy Create free account
hub / github.com/apache/cloudberry / main

Function main

devops/tools/elf_ubuntu_dependency_analyzer.py:285–300  ·  view source on GitHub ↗

Main function to handle command-line arguments and initiate the analysis.

()

Source from the content-addressed store, hash-verified

283 print(f"Error: {path} is neither a valid file nor a directory.")
284
285def main():
286 """
287 Main function to handle command-line arguments and initiate the analysis.
288 """
289 parser = argparse.ArgumentParser(description="ELF Dependency Analyzer for Ubuntu")
290 parser.add_argument('paths', nargs='+', help="Paths to files or directories to analyze")
291 args = parser.parse_args()
292
293 grand_summary = defaultdict(set)
294 grand_special_cases = []
295 grand_missing_libraries = defaultdict(set)
296
297 for path in args.paths:
298 analyze_path(path, grand_summary, grand_special_cases, grand_missing_libraries)
299
300 print_grand_summary(grand_summary, grand_special_cases, grand_missing_libraries)
301
302if __name__ == '__main__':
303 main()

Calls 3

parse_argsMethod · 0.80
analyze_pathFunction · 0.70
print_grand_summaryFunction · 0.70

Tested by

no test coverage detected