Parse command line arguments.
()
| 29 | |
| 30 | |
| 31 | def parse_arguments() -> argparse.Namespace: |
| 32 | """Parse command line arguments.""" |
| 33 | parser = argparse.ArgumentParser( |
| 34 | description="Generate comprehensive documentation for Python components in dependency order." |
| 35 | ) |
| 36 | parser.add_argument("--repo-path", type=str, required=True, help="Path to the repository") |
| 37 | |
| 38 | return parser.parse_args() |
| 39 | |
| 40 | |
| 41 | async def main() -> None: |
| 42 | """Main entry point for the documentation generation process.""" |
| 43 | try: |
| 44 | # Parse arguments and create configuration |
| 45 | args = parse_arguments() |
| 46 | config = Config.from_args(args) |