Main function to handle command-line arguments and initiate the analysis.
()
| 283 | print(f"Error: {path} is neither a valid file nor a directory.") |
| 284 | |
| 285 | def 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 | |
| 302 | if __name__ == '__main__': |
| 303 | main() |
no test coverage detected