fix: repair 25 Python scripts failing --help across all domains

- Fix Python 3.10+ syntax (float | None → Optional[float]) in 2 scripts
- Add argparse CLI handling to 9 marketing scripts using raw sys.argv
- Fix 10 scripts crashing at module level (wrap in __main__, add argparse)
- Make yaml/prefect/mcp imports conditional with stdlib fallbacks (4 scripts)
- Fix f-string backslash syntax in project_bootstrapper.py
- Fix -h flag conflict in pr_analyzer.py
- Fix tech-debt.md description (score → prioritize)

All 237 scripts now pass python3 --help verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Reza Rezvani
2026-03-10 05:51:27 +01:00
parent 670a1a61f3
commit 5add886197
25 changed files with 455 additions and 132 deletions

View File

@@ -455,7 +455,7 @@ def main():
help="Base branch for comparison (default: main)"
)
parser.add_argument(
"--head", "-h",
"--head",
default="HEAD",
help="Head branch/commit for comparison (default: HEAD)"
)