package ghostty import "testing" func TestIsCLIAction(t *testing.T) { cases := map[string]bool{ "/usr/bin/ghostty\x00": false, "ghostty\x00--gtk-single-instance=true\x00": false, "ghostty\x00+list-themes\x00": true, "ghostty\x00--config-file=x\x00+show-config\x00": true, "ghostty\x00-e\x00vim\x00+10\x00file\x00": false, } for cmdline, want := range cases { if got := isCLIAction([]byte(cmdline)); got != want { t.Errorf("isCLIAction(%q) = %v, want %v", cmdline, got, want) } } }