Skip to content

Make --prompt a global alias for --title across all clets#175

Draft
Copilot wants to merge 3 commits into
developfrom
copilot/fix-prompt-and-title-consistency
Draft

Make --prompt a global alias for --title across all clets#175
Copilot wants to merge 3 commits into
developfrom
copilot/fix-prompt-and-title-consistency

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

--prompt was a per-clet option exclusive to confirm, while --title was a global built-in flag. Both set the window title, but inconsistently — users had to remember which flag to use for which clet.

Now --prompt / -p is a global alias for --title / -t. Both work identically for all clets.

# These are now equivalent for any clet:
clet confirm --prompt "Deploy to prod?"
clet confirm --title "Deploy to prod?"
clet select --prompt "Pick env" prod staging dev
clet int --prompt "Enter count"

Changes

  • CommandLineRoot.cs — Parse --prompt / -p as synonyms for --title / -t in DispatchAlias and IsKnownOptionToken
  • ConfirmClet.cs — Remove per-clet --prompt option descriptor and custom title-override logic; now uses the standard options.Title path via InputCletRunner
  • TestsConfirmCletTests asserts empty options; new CommandLineRootTests for --prompt/-p missing-value errors
  • Docs — Updated overview.md, confirm.md, README.md, clet-spec.md, decisions.md (D-014)

Copilot AI added 2 commits May 22, 2026 17:34
- Add --prompt / -p as a built-in global alias for --title / -t in
  CommandLineRoot.DispatchAlias and IsKnownOptionToken
- Remove the per-clet --prompt option from ConfirmClet (it now uses
  the global --title/--prompt flag like every other clet)
- Update help docs, spec, decisions, and README
- Update tests to reflect the change
Copilot AI changed the title [WIP] Fix --prompt and --title to ensure consistent behavior for all clets Make --prompt a global alias for --title across all clets May 22, 2026
Copilot finished work on behalf of tig May 22, 2026 17:35
Copilot AI requested a review from tig May 22, 2026 17:35
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.

--prompt and --title are confusing and should work consistently for all clets

2 participants