fix(cli): Handle progressive help flags correctly in create command

- Use underscore prefix for help flag destinations (_help_web, etc.)
- Handle help flags in main.py argv reconstruction
- Ensures progressive disclosure works through unified CLI

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-02-15 18:48:43 +03:00
parent 7031216803
commit 29409d0c89
2 changed files with 22 additions and 13 deletions

View File

@@ -128,6 +128,15 @@ def _reconstruct_argv(command: str, args: argparse.Namespace) -> list[str]:
if key == "command":
continue
# Handle internal/progressive help flags for create command
# Convert _help_web to --help-web etc.
if key.startswith("_help_"):
if value:
# Convert _help_web -> --help-web
help_flag = key.replace('_help_', 'help-')
argv.append(f"--{help_flag}")
continue
# Handle positional arguments (no -- prefix)
if key in [
"url",