From 9a9bc43a9b9ce582053637a9bfa646c7c55d7673 Mon Sep 17 00:00:00 2001 From: Kat <65649991+00-kat@users.noreply.github.com> Date: Fri, 21 Mar 2025 19:10:52 +1100 Subject: [PATCH] Mention macOS' `open` in the CLI help messages. --- src/cli/help.zig | 4 +++- src/main_ghostty.zig | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cli/help.zig b/src/cli/help.zig index 32cdfa303..6c989fd0c 100644 --- a/src/cli/help.zig +++ b/src/cli/help.zig @@ -51,7 +51,9 @@ pub fn run(alloc: Allocator) !u8 { \\`ghostty -e top` will run the `top` command inside the terminal. \\ \\On macOS, launching the terminal emulator from the CLI is not - \\supported and only actions are supported. + \\supported and only actions are supported. Use `open -na Ghostty.app` + \\instead, or `open -na ghostty.app --args --foo=bar --baz=quz` to pass + \\arguments. \\ \\Available actions: \\ diff --git a/src/main_ghostty.zig b/src/main_ghostty.zig index 7560423db..6a4688dc7 100644 --- a/src/main_ghostty.zig +++ b/src/main_ghostty.zig @@ -84,6 +84,9 @@ pub fn main() !MainReturn { \\(i.e. Ghostty.app on macOS). This CLI can be used to perform various \\actions such as inspecting the version, listing fonts, etc. \\ + \\On macOS, the terminal can also be launched using `open -na Ghostty.app`, + \\or `open -na Ghostty.app --args --foo=bar --baz=qux` to pass arguments. + \\ \\We don't have proper help output yet, sorry! Please refer to the \\source code or Discord community for help for now. We'll fix this in time. \\