Repository navigation
Print usage on -h/--help in omarchy-tailscale-send - #18806
Conversation
Direct invocation as `omarchy-tailscale-send --help` or `-h` treated the flag as the machine name and opened the file picker titled "Send to --help"/"Send to -h". Add a check matching other bin/ scripts that prints `Usage: omarchy-tailscale-send <machine> [file...]` and exits 0 before the machine assignment, so no picker opens.
[Low impact] No new issue blocks merging. Summary
Reviews (3) · Last reviewed commit: "Drop the standalone tailscale-send help ..." · Reviewed by Greptile |
Run the command directly with each flag and check it succeeds, prints its usage line and never opens the file picker. Before the fix the flag was taken as the machine name and the picker opened. Co-authored-by: Cursor <cursoragent@cursor.com>
A five-line usage guard copied from omarchy-plugin-enable does not warrant a new test file with a stubbed picker; AGENTS.md asks for no new test file for a small change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pushed d280bb8, which removes The bug is real when Checked on an Omarchy ISO worker. With the guard, Codex Medium reviewed the commit and found nothing wrong. It confirmed nothing else refers to the deleted file, since |
* Handle -h/--help in omarchy-tailscale-send before using $1 as machine Direct invocation as `omarchy-tailscale-send --help` or `-h` treated the flag as the machine name and opened the file picker titled "Send to --help"/"Send to -h". Add a check matching other bin/ scripts that prints `Usage: omarchy-tailscale-send <machine> [file...]` and exits 0 before the machine assignment, so no picker opens. * Test that omarchy-tailscale-send -h and --help print usage Run the command directly with each flag and check it succeeds, prints its usage line and never opens the file picker. Before the fix the flag was taken as the machine name and the picker opened. Co-authored-by: Cursor <cursoragent@cursor.com> * Drop the standalone tailscale-send help test A five-line usage guard copied from omarchy-plugin-enable does not warrant a new test file with a stubbed picker; AGENTS.md asks for no new test file for a small change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 3b717fa)
Running
omarchy-tailscale-send --helpinbin/omarchy-tailscale-sendopens a file picker titled "Send to --help" instead of printing usage.Screenshots
Reproduce
omarchy-tailscale-send --helpand press Enter.Usage: omarchy-tailscale-send <machine> [file...].More cases
Direct -h treated as machine name