Skip to content

docs: add help text to CLI options#41

Open
Nelson Spence (Fieldnote-Echo) wants to merge 1 commit intomainfrom
fix/cli-help-text
Open

docs: add help text to CLI options#41
Nelson Spence (Fieldnote-Echo) wants to merge 1 commit intomainfrom
fix/cli-help-text

Conversation

@Fieldnote-Echo
Copy link
Member

Add help text to CLI options missing descriptions in validate, render,
apply, and diff commands.

Closes #30


Recreated from #35 by Jianjun Wang (@passionworkeer) — original was reverted during CI infrastructure work. See comment below for context.

Co-Authored-By: passionworkeer passionworkeer@users.noreply.github.com

Add help text to CLI options missing descriptions in validate, render,
apply, and diff commands.

Closes #30

Co-Authored-By: passionworkeer <passionworkeer@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing Click help= strings for common CLI options so nboot <command> --help shows descriptions for validate, render, apply, and diff commands (addresses #30).

Changes:

  • Add help= text for --spec / --pack in validate
  • Add help= text for --spec / --pack / --out / --dry-run in render
  • Add help= text for --spec / --pack / --dry-run in apply and for --spec / --pack in diff

Comment on lines 53 to 57
"--spec",
required=True,
type=click.Path(exists=True, path_type=Path),
help="Path to the project spec YAML file",
)
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new --spec help text says "YAML", but load_spec() loads JSON (see src/navi_bootstrap/spec.py), and init writes nboot-spec.json. This will mislead users; update the help string to reference a JSON spec file (or broaden it only if YAML is actually supported).

Copilot uses AI. Check for mistakes.
Comment on lines 81 to 85
"--spec",
required=True,
type=click.Path(exists=True, path_type=Path),
help="Path to the project spec YAML file",
)
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new --spec help text says "YAML", but this command calls load_spec() which parses JSON specs. Update the help string to reference a JSON spec file to match actual behavior.

Copilot uses AI. Check for mistakes.
Comment on lines 186 to 190
"--spec",
required=True,
type=click.Path(exists=True, path_type=Path),
help="Path to the project spec YAML file",
)
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new --spec help text says "YAML", but load_spec() parses JSON specs. Please adjust the help text to say JSON (consistent with init producing nboot-spec.json).

Copilot uses AI. Check for mistakes.
"--spec",
required=True,
type=click.Path(exists=True, path_type=Path),
help="Path to the project spec YAML file",
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new --spec help text refers to a YAML spec file, but this command uses load_spec() which loads JSON. Update the help string to reference JSON (or otherwise align it with supported formats).

Suggested change
help="Path to the project spec YAML file",
help="Path to the project spec JSON file",

Copilot uses AI. Check for mistakes.
@@ -53,8 +53,9 @@ def cli() -> None:
"--spec",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 LOW: Consistent and Complete CLI Help Texts Added

Confidence: 95%

Help text has now been added to all key CLI options, improving usability and self-documentation for users. This change also helps ensure argument meaning is visible via --help, aligning with best practices for CLI tool UX.

Suggestion: No action required unless further detail is desired for edge case options. Consider reviewing all remaining options to ensure similar clarity.

— Observable code is debuggable code. Consistency helps everyone (even me).

@github-actions
Copy link
Contributor

✅ Grippy Review — PASS

Score: 98/100 | Findings: 1

Delta: 1 new


Commit: beec1a4

Copy link
Collaborator

@project-navi-bot project-navi-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All required CI checks passed. Auto-approved by navi-bot.

Copy link
Collaborator

@project-navi-bot project-navi-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All required CI checks passed. Auto-approved by navi-bot.

@passionworkeer
Copy link
Contributor

Thanks for carrying this over with attribution — appreciated. I saw the CI churn note on #35, so no worries on the handoff. I’ll watch for any substantive feedback here and adjust if needed.

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.

Add help text to CLI options missing descriptions

4 participants