diff options
Diffstat (limited to 'vendor/libghostty-vt/src/cli/list_actions.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/cli/list_actions.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/cli/list_actions.zig b/vendor/libghostty-vt/src/cli/list_actions.zig index aaef1195..ce4af5c4 100644 --- a/vendor/libghostty-vt/src/cli/list_actions.zig +++ b/vendor/libghostty-vt/src/cli/list_actions.zig @@ -3,6 +3,7 @@ const args = @import("args.zig"); const Action = @import("ghostty.zig").Action; const Allocator = std.mem.Allocator; const helpgen_actions = @import("../input/helpgen_actions.zig"); +const global = @import("../global.zig"); pub const Options = struct { /// If `true`, print out documentation about the action associated with the @@ -32,14 +33,14 @@ pub fn run(alloc: Allocator) !u8 { defer opts.deinit(); { - var iter = try args.argsIterator(alloc); + var iter = try args.argsIterator(alloc, global.args()); defer iter.deinit(); try args.parse(Options, alloc, &opts, &iter); } - var stdout: std.fs.File = .stdout(); + var stdout: std.Io.File = .stdout(); var buffer: [4096]u8 = undefined; - var stdout_writer = stdout.writer(&buffer); + var stdout_writer = stdout.writer(global.io(), &buffer); try helpgen_actions.generate( &stdout_writer.interface, .plaintext, |
