Skip to content

docs(cli): split the merged --env / --exit-when-nodes-finish help on dora start - #3062

Closed
phil-opp wants to merge 1 commit into
mainfrom
claude/dreamy-bardeen-ihydnu-start-help-split
Closed

docs(cli): split the merged --env / --exit-when-nodes-finish help on dora start#3062
phil-opp wants to merge 1 commit into
mainfrom
claude/dreamy-bardeen-ihydnu-start-help-split

Conversation

@phil-opp

@phil-opp phil-opp commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

On dora start (binaries/cli/src/command/start/mod.rs), the doc comment intended for --env ran without a break straight into the doc comment for --exit-when-nodes-finish. In Rust the entire block therefore annotates the field that follows it (exit_when_nodes_finish), and the env field below had no doc comment at all.

Result: dora start --help shows --exit-when-nodes-finish with a large help blob whose first ~13 lines actually describe --env, while --env shows no description. The sibling dora run command (run.rs) already keeps the two descriptions separate — this was just never propagated to start.

Fix

Split the block so each field carries its own help:

  • exit-policy paragraphs → above exit_when_nodes_finish
  • environment-variable paragraphs → above the env field

Pure doc-comment reordering; the field declarations, #[clap(...)] attributes, and runtime behavior are unchanged.

Validation

  • cargo clippy -p dora-cli --lib -- -D warnings
  • cargo fmt -p dora-cli -- --check
  • Confirmed no snapshot/help test pins this text.

⚠️ Machine-generated change. This PR was authored by Claude (Claude Code), an AI assistant, as part of an automated code-review pass. Please review before merging.

🤖 Generated with Claude Code


Generated by Claude Code

…`dora start`

On `dora start`, the doc comment intended for `--env` ran uninterrupted
into the one for `--exit-when-nodes-finish`, so the whole block
annotated `exit_when_nodes_finish` and the `env` field had no doc at
all. `dora start --help` therefore showed `--exit-when-nodes-finish`
with a blob whose first half describes `--env`, and `--env` with no
description. The sibling `dora run` command already keeps the two
separate; this propagates the same split to `start`.

Move the exit-policy paragraphs above `exit_when_nodes_finish` and the
environment-variable paragraphs above the `env` field. Doc-comment
reordering only — no code or behavior change.

This is a machine-generated change authored by Claude (Claude Code), an
AI assistant, and has been verified with fmt and clippy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoWA8SwvteRHxQ7npJsCyi
@trunk-io

trunk-io Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

phil-opp commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 Automated review by Claude Code — fully automated review, not vetted by a human.

No issues found. This only moves the doc-comment paragraphs so the exit-policy text sits above exit_when_nodes_finish and the environment-variable text above the env field, fixing the merged --help output. No code or behavior change.


Generated by Claude Code

@phil-opp
phil-opp marked this pull request as ready for review August 9, 2026 11:33
@phil-opp

phil-opp commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate of #2992 — the two diffs are byte-identical, so keeping the earlier PR.

@phil-opp phil-opp closed this Aug 9, 2026
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