()
| 6 | |
| 7 | |
| 8 | def main(): |
| 9 | from plain2code_arguments import create_parser |
| 10 | |
| 11 | # Get the parser and generate help text |
| 12 | parser = create_parser() # Disable color for markdown output |
| 13 | help_text = parser.format_help() |
| 14 | |
| 15 | # Create markdown |
| 16 | md = "# Plain2Code CLI Reference\n\n```text\n" + help_text + "\n```" |
| 17 | |
| 18 | # Run generate_cli.py in the docs folder |
| 19 | |
| 20 | with open("plain2code_cli.md", "w", encoding="utf-8") as f: |
| 21 | f.write(md) |
| 22 | |
| 23 | |
| 24 | if __name__ == "__main__": |
no test coverage detected