Skip to content

fix: unify desktop CLI option handling#98

Open
yuler wants to merge 2 commits into
mainfrom
desktop-cli-options
Open

fix: unify desktop CLI option handling#98
yuler wants to merge 2 commits into
mainfrom
desktop-cli-options

Conversation

@yuler

@yuler yuler commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • centralize desktop CLI command detection in cli.rs for startup and single-instance events
  • ensure --version exits cleanly without opening the UI in startup and second-invocation flows
  • add --help/-h output and keep --selection Wayland-gated via unified startup options

Test plan

  • Run typo --version and verify it prints version and exits
  • Run typo --help and verify usage output
  • Run typo --selection on Wayland and verify selection flow still triggers

gemini-code-assist[bot]

This comment was marked as outdated.

Centralize startup and single-instance CLI parsing in cli.rs so --version and --selection behave consistently. Add --help/-h output and ensure version/help exit without opening the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yuler yuler force-pushed the desktop-cli-options branch from c011414 to f15877d Compare June 2, 2026 06:58
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.

1 participant