try icon indicating copy to clipboard operation
try copied to clipboard

Fix --help/--version breaking shell integration

Open ansonhoyt opened this issue 4 days ago • 0 comments

Output help and version text to STDERR instead of STDOUT.

The shell wrapper evals STDOUT on exit 0, so try --version was running eval "try 1.7.1" which launched the TUI with "1.7.1" as the search term. Similarly, try --help caused bash syntax errors.

Alternatives considered:

  • Exit non-zero for help/version (implies error, misleading)
  • Output no-op shell command first (more complex)
  • Change wrapper to detect these flags (adds logic to shell function)

STDERR is the common pattern for tools with shell integration (mise, direnv, etc.) and keeps the fix minimal.

Co-Authored-By: Claude Opus 4.5 [email protected]

ansonhoyt avatar Jan 17 '26 03:01 ansonhoyt