Skip to content

fix(cli): correct and complete the generate command help#18

Open
Reefact wants to merge 1 commit into
mainfrom
claude/cli-help-docs-bugs-euqzb8
Open

fix(cli): correct and complete the generate command help#18
Reefact wants to merge 1 commit into
mainfrom
claude/cli-help-docs-bugs-euqzb8

Conversation

@Reefact

@Reefact Reefact commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Contexte

Bug B4 — Aide du CLI incomplète/incorrecte. Deux descriptions d'aide de la commande generate étaient fausses, et un audit du reste de l'aide CLI a révélé deux points de cohérence associés.

Le bug

Option Ancien texte Problème
--format « json or markdown (alias: md) » html est un format intégré (RendererCatalog.BuiltInFactoriesHtmlErrorDocumentationRenderer.Format => "html") mais était absent de l'aide.
--layout « Markdown layout: single or split » single/split s'appliquent aussi au format html (son SupportedLayouts = [Single, Split]). Seul json est limité à single. Le libellé « Markdown » était trompeur.

Changements

  • GenerateSettings.cs
    • --format → « Output format: json, markdown (alias: md) or html. »
    • --layout → « Document layout: single or split. Applies to the markdown and html formats (json is single only). »
  • CliConfiguration.cs — mêmes formulations dans les commentaires XML (mirroir des valeurs par défaut) alignées : html ajouté au format, layout décrit comme document layout.
  • RendererAddCommand.cs — l'argument renderer add <PATH> n'avait aucune [Description], donc l'aide de la sous-commande n'expliquait pas le <PATH>. Description ajoutée (avec le using System.ComponentModel; requis).

Vérification

Aucun SDK .NET n'est disponible dans l'environnement d'exécution, donc la compilation n'a pas pu être exercée. Les modifications se limitent à des chaînes [Description]/commentaires XML et à l'ajout d'un using d'un namespace standard — faible risque.

🤖 Generated with Claude Code


Generated by Claude Code

The --format help listed only "json or markdown (alias: md)", omitting the
built-in html format (declared in RendererCatalog.BuiltInFactories). The
--layout help called it a "Markdown layout", but single/split apply to the
html format too (only json is single-only).

- --format: mention html alongside json and markdown.
- --layout: describe it as a document layout and state which formats support
  it, instead of tying it to Markdown.
- Mirror the same wording in the CliConfiguration doc comments.
- Add the missing description on the `renderer add <PATH>` argument so it
  appears in --help.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016y9NbS218s4nPXEUBvnf6W
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants