[IMP] cli: rewrite --help descriptions for clarity and completeness#226
[IMP] cli: rewrite --help descriptions for clarity and completeness#226
Conversation
nhomar
commented
Feb 13, 2026
- Add program description and usage examples epilog
- Use RawDescriptionHelpFormatter for proper line formatting
- Rewrite all 19 argument help strings with clear descriptions
- Show default values consistently across all arguments
- Organize arguments in logical groups (Docker, Paths, Git, Build, Run, Hooks, DeployV)
- No logic changes, only cosmetic help text improvements
- Add program description and usage examples epilog - Use RawDescriptionHelpFormatter for proper line formatting - Rewrite all 19 argument help strings with clear descriptions - Show default values consistently across all arguments - Organize arguments in logical groups (Docker, Paths, Git, Build, Run, Hooks, DeployV) - No logic changes, only cosmetic help text improvements
🔍 Análisis profundo del codebase — HallazgosSe realizó un análisis exhaustivo de todo el código fuente, templates, tests, configuración y documentación. Se encontraron 13 inconsistencias organizadas en 6 categorías: 🔴 Bugs (2)
🟡 Docs vs Código (3)
🟡 Vestigios (4)
🟡 UX (2)
🟢 DeployV (2)
Cada hallazgo tiene propuesta de solución concreta. Se pueden crear issues individuales por cada punto para trackear las correcciones. |
The template hardcoded -itP in the docker run command, but the CLI default for --run-extra-args already includes -itP -e LANG=C.UTF-8, resulting in duplicate flags in the generated script.
The list comprehension [x[0] for x in args.build_env_args] silently discarded all but the first value when multiple args were passed in a single --build-env-args invocation (e.g. --build-env-args VAR1 VAR2). Now properly flattens all sub-lists.
- Correct output directory structure to match actual code behavior (python_version/env_N_job_M instead of flat /1, /2) - Document .t2d.yml as alternative config file name - Clarify that HTTPS URLs are also accepted - Add Ed25519 key instructions as recommended (matching code behavior) - Keep RSA instructions as legacy fallback - Note that 10-build.sh already uses --pull so manual pull is optional - Fix typo: 'into of' -> 'inside of'
The project's CI has migrated to GitHub Actions (.github/workflows/). This .travis.yml is vestigial and contains an unusable encrypted PyPI deploy token. Removing to avoid confusion since this tool parses .travis.yml files — having its own obsolete one is misleading.
- Remove from __future__ import print_function in git_run.py
- Remove 5 try/except encode('utf-8') blocks in travis2docker.py
(in Py3 .encode() returns bytes, so text-mode write always raised
TypeError — the except branch was always the one executing)
- Change setup.cfg universal = 0 (project no longer supports Py2)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
=======================================
Coverage 80.61% 80.61%
=======================================
Files 7 7
Lines 614 614
Branches 113 91 -22
=======================================
Hits 495 495
Misses 86 86
Partials 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…to 3.10
- Remove 5 try/except encode('utf-8') blocks (in Py3 .encode()
returns bytes, text-mode write always raised TypeError — the
except branch was always executing)
- Update default Python version from 3.5 to 3.10 (Odoo 16+)
- Replace print('cmd list', ...) and print('cmd', ...) with
_logger.debug() so output is controllable via logging config
- Remove obsolete pylint disable for print-used
- Use standard Python logging module
- --docker-image: note that the default is a legacy Odoo 8.0 image - --runs-at-the-end-script: fix misleading 'none' default — the code actually injects 'sleep 2' when omitted (for interactive debugging) - --build-env-args: document DeployV rendering divergence (shell exports vs ARG/ENV) - --deployv: document auto-constructed image name pattern from variables.sh
|
Superseded by #227, which rebases these commits onto |